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
DID two way fixed effectsDear Statalist Members, PS: I have attached a small portion of my data. By using a repeated cross …
Control variables in interaction functionHello fellow stata users! I have a more theoretical question instead of how to use stata. I was won…
Expxport codebook descriptives to latexHello, I have a very simple query that unfortunately I am unable to resolve. I am trying to export …
Suspected bug in -confirm-The title is self-explanatory. Here is a reproducible example: Code: clear sysuse auto confirm var…
cmp-random effectsGood day, I am trying to estimate the impact of health status expectations (Exp_h) on consumption ex…
Subscribe to:
Post Comments (Atom)
0 Response to Help with Program that Draws Observations from Distribution and Nested Loop
Post a Comment