Hello,
In case of binomial probability, where n = 100 and p= 0.6. I would like to compute binomial probability when x = 0, 1, ...., 100 and plot the histogram.
I use the following command:
set obs 100
forvalue i=1/100 {
scalar prob`i' = binomialp(100,`i',0.6)
}
How can I combine the prob1,..., prob100 into one variable to plot the binomial distribution?
Thank You
Related Posts with Probability distribution histogram - binomial
Help with regression, binary independent variable with moderatorsDear all I'm fairly new with Stata and I have done my best to search for previous questions which a…
Splitting one variable containing two variable dataHello I have a variable 'implementscheme' which contains the names of various agriculture implements…
Fixed Effects Pooled OLS Panel Data RegressionDear all, Thanks for your time reading this. My data has small T and large N. When I use Hausman t…
Help on Writing out Regression Equation for Panel Data inc. Industry and Time DummiesHello, I'm trying to write out my regression equation inc. industry and time dummies, but I'm not s…
Diff-in-diff with matchingHello, I am working on a project which uses diff-in-diff with propensity score matching techniques a…
Subscribe to:
Post Comments (Atom)
0 Response to Probability distribution histogram - binomial
Post a Comment