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
Rebalance Portfolios based on Annual Carbon Emission and Size TrecilesHi all! I need some help with figuring out how to calculate the portfolio returns. Below you can fi…
Generate a variable with IF ANDI need to crate a variable with IF AND formula, but I did not find it in Stata. Could you please hel…
Merging does not have to be unique, is this possible?Hi, I am working with stata and i have a question so i can continue my thesis. I have got a dataset…
Converting a Continuous Variable to an Ordinal Variable (For Large Numbers)Hi, I have a continuous variable (median household income) from my census data that I am trying to c…
running firthlogit or relogit on survey dataHello to all. am hoping someone can help with an issue I am having – all roads have led me to this d…
Subscribe to:
Post Comments (Atom)
0 Response to Help with Program that Draws Observations from Distribution and Nested Loop
Post a Comment