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?
Random allocation of observationsDear Community. I have about five million observations(men, age 40s). I'd like to classify these 5…
Dropping dummies from output tableHi guys, I hope you can help me. I am working with the following regressions: regress ylist xlist …
Piecewise regression with panel dataDear. Statalist I am trying to do a piecewise regression with panel data but I can't find out much …
How to use value labels in graph legend rather than variable namesI have a bar graph with 11 variables (B1_1 - B1_11) and each variable is binary with a label on the …
chaning time to minutes.I have a variable where the data er described as 6D 21H 52M 0S (d= days, H= hours, M=minutes, S= sec…
Subscribe to:
Post Comments (Atom)
0 Response to How do I use STATA to do simulations for a Bernoulli trial?
Post a Comment