The dataset is here:
insheet using "https://stats.idre.ucla.edu/stat/data/hdp.csv", comma
foreach i of varlist familyhx smokinghx sex cancerstage school {
encode `i', gen(`i'2)
drop `i'
rename `i'2 `i'
}
xtmelogit remission il6 crp i.cancerstage lengthofstay c.pain c.pain#i.cancerstage|| did: , intpoints(10)
To this step, everything seems Ok.
However, when I used the Stata code below, the error messages prompted
mcp pain cancerstage
There was a problem executing -margins-.
The command issued was essentially as follows: margins , at( pain=( 1 2 3 4 5 6 7 8 9) cancerstage=( 1 2 3 4)) r(498);
Does anybody know if mcp command is not allowed to be used after fitting a xtemologit model?
Thank you!
insheet using "https://stats.idre.ucla.edu/stat/data/hdp.csv", comma
foreach i of varlist familyhx smokinghx sex cancerstage school {
encode `i', gen(`i'2)
drop `i'
rename `i'2 `i'
}
xtmelogit remission il6 crp i.cancerstage lengthofstay c.pain c.pain#i.cancerstage|| did: , intpoints(10)
To this step, everything seems Ok.
However, when I used the Stata code below, the error messages prompted
mcp pain cancerstage
There was a problem executing -margins-.
The command issued was essentially as follows: margins , at( pain=( 1 2 3 4 5 6 7 8 9) cancerstage=( 1 2 3 4)) r(498);
Does anybody know if mcp command is not allowed to be used after fitting a xtemologit model?
Thank you!
Comment