Hello, I am using STATA 14 and would like to generate some random numbers that have a specific mean and standard deviation but fall with a range.
I used
gen x = rnormal (m, s) and the mean and SD were spot on but the range contains negative numbers. In this case I need the numbers to range from a minimum of 5.98 to a maximum of 9. Just to test, I used runiform( ) as it allows a range but the SD was off. Any help is welcomed.
Thanks in advance!
Related Posts with Generate random numbers with specific mean and standard deviation within a range
Extract Monte Carlo results from MataDear all, I am doing a 2000 times monte carlo simulation of two-stage least square estimation with …
IV blows up coefficientsDear Stata Users Comparing a RE (xtreg, re) with and IV (xtivreg, re) model, I receive quite large …
Data sharingDear all, Not sure if I'm writing on a correct page, but I'm completely sure that a lot of people h…
Choice and Implementation of Regression Technique for Pooled dataHello Everyone I am trying to run regressions of the form given below for the first time: [ATTACH=…
Need to count with several conditionsI want to count how many contracts the company already had in the inventory when the company signs t…
Subscribe to:
Post Comments (Atom)
0 Response to Generate random numbers with specific mean and standard deviation within a range
Post a Comment