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
İnteresting Problem About Xtbunitroot test (Karavias and Tzavalis (2014)ı have N:12 T:31 panel data. ı am researching agriculture subsideies how to effect inputs costs. I w…
New package sscpax on SSCThanks once again to Kit Baum, a new package sscpax is now available for download from SSC. In Stata…
Computing rolling lagged sums with bysortDear Statalist users, I have monthly time series data on flight_delays per air_carrier. For each ai…
Computing rolling lagged sums with bysortDear Statalist users, I have monthly time series data on flight_delays per air_carrier. For each ai…
Saving option within a programDear All, I have the following rough code (it needs further amendements): Code: capture program …
Subscribe to:
Post Comments (Atom)
0 Response to Help with Program that Draws Observations from Distribution and Nested Loop
Post a Comment