hello,
As part of a Monte Carlo study
I have the following population regression model:
Y= 262 -0.006X2-2.4X3+u
I was told to assume that u is normally distributed with N(0,42)
I have to Generate 64 observations for u
I have to combine the observations with the 64 observations on X2 and X3 in a table that I already have to estimate the corresponding sample regression model Betahat1 Betahat 2 and Betahat3 using the OLS method. Save the estimated coefficients.
Then they want me to repeat that 20 times. Is there a shortcut to create u, u1,u2...u20 where each of them is N(0,42) and gets added to my editor then I want a command that regresses my X2 and X3 and each of the Us on my Y. So I have to have 20 regressions. I wanna do that in one command. Is there a way? Please help.
Related Posts with loops
teffects: observations have no propensity-score matches within caliperHi everyone, I am currently working on a project where I want to use STATA command teffects rather …
Embedding asdoc tables in putdocxHi everyone, I am trying to produce publication-style tables in a dynamic word document. For my cas…
Different time series within the same variable.I have been having an issue graphing one of my variables in a time series database. My data set cont…
How to do Summations?Hello, I'm very new to stata and am having trouble figuring this out. If have have 2 variable lists,…
85th/15th quantile ratioDear all, I would like to calculate the 85th/15th quantile ratio of earnings by years. However, in…
Subscribe to:
Post Comments (Atom)
0 Response to loops
Post a Comment