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?
Testing the equality of the regression coefficientsThe main regression model reghdfe y x controls, absorb (ind fyear) vce(cluster gvkey) Now I want t…
an error occurred when svy executed mlogit: option baseoutcome() is required with prefix svy bootstrapHi, Using the code below, I am trying to obtain and save marginal estimates for each iteration of my…
How do I regress by month?My panel of data looks like the sample below. I am trying to regress 'subs' with the remaining varia…
New package: Relogitplot - predictive margins plots after relogit regressionsIf you use the relogit package (Tomz, King, and Zeng), you may be interested in an addon I wrote whi…
Multiple sheets export excelHello, I want to export the "auto" file in several Excel's sheets (one per brand). Code: sysuse aut…
Subscribe to:
Post Comments (Atom)
0 Response to How do I use STATA to do simulations for a Bernoulli trial?
Post a Comment