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
Apologies, double post.. …
Max of Previous 2 ObservationsAnother one I can'f figure out myself... Code: * Example generated by -dataex-. To install: ssc in…
Weights not allowed with the svy prefixHi Everyone. Can someone please help me, I am new at stata (less than a month). I am in the process…
Standardize interaction term where one term is dummyLet's start with the given that, in addition to presenting unstandardized coefficients, I am also pr…
Two linked variable loopsHi there, I’m fairly new to Stata and would really appreciate some advice with coding. I’m looking…
Subscribe to:
Post Comments (Atom)
0 Response to Options not allowed
Post a Comment