I tried to create a random variable for a hypothetical dataset with the following code
If I summerize the created variable the mean is not equal 0 and the SD not equal 1
Can this be correct?
Code:
set seed 12345 gen contvar = rnormal(0,1)
HTML Code:
. set seed 12345 . gen contvar=rnormal(0,1) . sum contvar Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- contvar | 1600 ,01877 1,024139 -3,645242 3,620961
Comment