Dear all,
I am trying to use the command pc_simulate from the package PC_PANEL.
I get a "syntax error" whatever I try.
Here is an example:
clear
set obs 100
gen id = _n
gen dep1 = rnormal(10,1)
gen dep2 = dep1+rnormal(0,10)
reshape long dep, i(id) j(time)
pc_simulate dep , model(ANCOVA) mde(0.1) i(id) t(time) n(32) p(0.5) pre(1) post(1) alpha(0.05) ///
nsim(10) replace
OUTPUT:
invalid syntax
r(198);
end of do-file
r(198);
I absolutely don't find the error and your help would be greatly appreciated.
Related Posts with pc_simulate invalid syntax error
Simple question on asdoc and label lengthsHi all, I am using asdoc to export some simple summary stats to word, using labels as variable name…
Variable labels and frmttableI am using frmttable to generate a summary table. As far as I can see the option varlabels should au…
Baseline hazard function for Piecewise constant modelI need to plot baseline hazard functions for a piecewise constant model. The problem I find is that …
Meta Command for prevalencesI'm trying to run a meta-analysis using the metan command for a rate of the progression outcome vari…
Find attrition at personal levelDear Stata users, I am using an unbalanced panel dataset. Here is an example of my dataset. hhid …
Subscribe to:
Post Comments (Atom)
0 Response to pc_simulate invalid syntax error
Post a Comment