Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Questions for random data generation and value label

From   Yu Xue <>
Subject   st: Questions for random data generation and value label
Date   Fri, 8 Mar 2013 16:49:42 -0600

I have two questions:

Question 1:
I am trying to build up synthetic/fake dataset, using random generated
variables. Of each variable I know:
1) mean
2) standard deviation
3) range of values (min and max values.)
How can I ask STATA to randomly generate a variable with all those
specified parameters?

Question 2:
How to know if a variable has a value label attached? I know I can
take a look at the result of "describe" or use "label list" to list
all value labels. But what I want is a command that can return a value
for each variable to show if it has value label attached or not.

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index