Dear all,
I am using Stata 16, on mac. I was wondering how would I write a program that selects a particular number of observations from a specified distribution such as uniform, poisson, beta? Also how would I write a nested loop if I wanted to draw a sample mean from the 3 distributions I mentioned previously with sample sizes of 3, 50 ,500 ,and 10000 and replicate 500 times and plot a histogram of the resulting distributions of the sample means?
Thank you in advance for your help,
Jason Browen
Related Posts with Help with Program that Draws Observations from Distribution and Nested Loop
Update Stata code for retrieving COVID data?I've greatly enjoyed running Chuck Huber's Stata code that automated the download of COVID data from…
Multilevel binomial logistic regression model with three levels does not convergeDear Statalist users, I am trying to fit a multilevel logistic regression model with a three-level …
Graph trend time DID xtregDear Stata users, I want to obtain a similar graph, that is commonly used to analyse trends in diffe…
Poisson Regression with Hausman Taylor instrumental variables estimatorI have a panel data. The dependent variable is a count variable, so a Poisson regression is more app…
ARDL and estimating a shock for dummyDear all, I am trying to estimate the effect of an observed trade shock (the entrance of China in W…
Subscribe to:
Post Comments (Atom)
0 Response to Help with Program that Draws Observations from Distribution and Nested Loop
Post a Comment