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
Cross tabulations based on multiple dummy variablesHello, I have a large dataset for N= 59,000,000 observations. I have 154 dummy variables relating …
Looping to create a difference scoreHello all, I am working on a project where I need difference scores. I will have a number of differ…
Interaction terms on robust standard errors result in no F-stat and p-valueHi all, I am currently experiencing some difficulties with my model, and I hope you will be able to …
marginal effects in hurdle modelDear All I'm fitting a hurdle model (with the command churdle linear) and use the margin (margins, …
Ordered Probit with 2 continuous interaction termHello all, I am doing an ordered probit regression as follows: Y takes the value from 1 to 10 X is a…
Subscribe to:
Post Comments (Atom)
0 Response to Probability distribution histogram - binomial
Post a Comment