xtmixed syntax in runmlwin
Posted: Tue Apr 12, 2016 8:14 am
I want to know how to replicate xtmixed command used by Roberto G. Gutierrez to smooth via penalized splines by using runmlwin command. Is it possible?
use http://www.stata.com/icpsr/mixed/motor, clear
local i 1
forvalues k = 1(1)60 {
gen time_‘i’ = cond(time - ‘k’ > 0, time - ‘k’, 0)
local ++i
}
xtmixed accel time || _all: time_*, noconstant cov(identity)
//The command that I have used is stated below.//
runmlwin accel times cons, level2(cons:bs*, elements(A) reset(all)) level1(id:cons) maxiterations(100) sd nopause
use http://www.stata.com/icpsr/mixed/motor, clear
local i 1
forvalues k = 1(1)60 {
gen time_‘i’ = cond(time - ‘k’ > 0, time - ‘k’, 0)
local ++i
}
xtmixed accel time || _all: time_*, noconstant cov(identity)
//The command that I have used is stated below.//
runmlwin accel times cons, level2(cons:bs*, elements(A) reset(all)) level1(id:cons) maxiterations(100) sd nopause