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?
Help required for variable forecast procedureDear All I need some help with commands relating to earnings forecasts model: EARN(t+1)=b0+ b1EARN…
Take the latest observation per fiscal-periodHi, I want to take (or mark) the latest forecast (variable= forecast_date) per fiscal-period (varia…
.ado Programming in Stata without invoking mata: Invalid Name error from within the functionStata Status: Beginner I have declared a local variable inside my function. And whenever I referenc…
Difference in proportion adjusted for baseline characteristics (Mantel Haenszel method)Hi, I am analysing the results of a trial & would like to compare the proportion of individuals…
Variable Significance Changes After Adding Regional DummiesDear All, I have two simple yet complicated question. I run my regressions on survey data using th…
Subscribe to:
Post Comments (Atom)
0 Response to How do I use STATA to do simulations for a Bernoulli trial?
Post a Comment