Suppose I have a Bernoulli trial that has a success rate of 0.05, and I run it for 30 times. Then I collect the data for the sample mean and sample variance.
Then I repeat this process for 1000 times.
How do I collect data for mean of sample mean and sample variance?
I've looked everywhere but all the results turned to be slightly off of what I was looking for.
I saw two commands forvalues i=1/n and reps.
But I have no idea how to use them.
Thank you in advance!
Related Posts with How do I use STATA to do simulations for a Bernoulli trial?
Questions about using -stpm2- and flexible proportional modelDear Stata Specialists, I'm trying to use flexible parametric model to estimate Hazard ratio over t…
Time Variable ConversionHi everyone, I'm looking to convert an integer variable into a time variable. The integers are all b…
keep observations with loopDear Stata users, I have a dataset like this. Code: clear input id month 1 1 1 2 1 3 1 4 1 5 2…
Bar chart for two categorical variables with same value labelsHello! I have two categorical variables ("concerned_chemicals" and "concerned_bacteria") with the sa…
Ask how to estimate error correction almost ideal demand system in stata?Dear Statalisters, I am using Stata ver 15, and the built in command aidsills written by Lecocq and…
Subscribe to:
Post Comments (Atom)
0 Response to How do I use STATA to do simulations for a Bernoulli trial?
Post a Comment