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?
combining many graphsDear Stata users, I am wondering, is it possible to combine graphs (combining more than 4 graphs) a…
Problem with dealing in unbalanced data obtained from CMIE databaseHello everyone! I am a new user here. I'm an undergrad studying in Goa. I'm working to study and obs…
Testing for weak instrumentsI have 3 endogenous variables in my model and I have identified 3 (or max 4) instruments. I wanted t…
Insheeting special characters like é or ü ?Dear all, when I -insheet- data from a .txt file, the special characters -é-, -è-, -ü-, -ä- and -ö- …
xtabond2: question about Sargan, Hansen and p-valuesDear all, I am new to the xtabond2 command and I have been struggling with this for a while so I re…
Subscribe to:
Post Comments (Atom)
0 Response to How do I use STATA to do simulations for a Bernoulli trial?
Post a Comment