Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1126

Re: Calculating power using Monte Carlo simulations, part 3: Linear and logistic regression

$
0
0

Hi, thank you for this very useful post. I keep having trouble with this section of code:
. simulate reject=r(reject), reps(100): ///
> simlogit, n(500) intercept(0.17) age(1.04) female(.15) interact(1.03) alpha(0.05)

command: simlogit, n(500) intercept(0.17) age(1.04) female(.15)
> interact(1.03) alpha(0.05)
reject: r(reject)

Simulations (100)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
.................................................. 50
.................................................. 100

It says
/ is not a valid command name
an error occurred when simulate executed simlogit

Could you assist?


Viewing all articles
Browse latest Browse all 1126

Trending Articles