Hi all.
Here is an excerpt of a program that I am constructing for university
simulate beta_1=r(mean) ,rep(500) seed(300344572) :sim 10, 10
clear // clearing past iterations of the program
. capture program drop sim // allows program reuse
.
. /** Start of Program */
.
. program sim,rclass // defining program
1. set trace on
2. args p t // p = number of individuals, t = number of periods
3.
. /** Initialise Level 2 program structure*/
. set obs `p' // set the number of people to the input argument
4. generate person = _n // creates an indexed list of people
5. end
At line 4, it crashes, displaying the message "options not allowed" and an error code of r(101).
I am hoping that you can help me to find this error. I am sure it is something super simple.
Kind Regards
Christopher Keegan
Related Posts with Options not allowed
generating new variableHello members, Please i want to generate a new variable "marital status" to have categories "1. Mari…
Summary table (specifically standard deviation) for ANOVA commandI am trying to get a summary table for my anova command (like the subcommand tabulate does when you …
Latent Class Model on a Mixture-Amount Discrete Choice ExperimentHello I performed a discrete choice experiment which included 8 mixtures terms (the proportions of …
Estimating incidence rates from Poisson and marginsHi Stata users I've asked beforre, but realize that my post may have been unclear, so hopefully I c…
If-Else IssueHello All, I have a rather interesting issue. I am attempting to use some if-else statements for so…
Subscribe to:
Post Comments (Atom)
0 Response to Options not allowed
Post a Comment