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
Trouble plotting standard deviation - Sigma convergenceHi, I am new to Stata and have been trying to plot the standard deviation of my whole sample and th…
Counting unique observations in a complicated data structureDear Statalist, I have a panel data on the level of towns and their administrative parts. Each town…
Question about using if flag + tab togetherHi all, I am trying to create a Table 1 using Medicare claims to compare demographics among people …
How toI have quite a simple problem. But STATA is new to me. my code is : y age gender: egen UIdur_mean …
Graph combine formattingDear All, I am trying to combine coefficient plots from 3 different regressions. My data looks as f…
Subscribe to:
Post Comments (Atom)
0 Response to Options not allowed
Post a Comment