Hi, I am new to STATA and would really appreciate if someone could advise me on the following:
I would like to generate a new categorical variable that would correspond to histogram bins.
I have 200759 observations, 7064 bins (0.005 widths); min value of the variable is -19.80374 and maximum 15.48759.
I've tried gen with autocode but getting missing values
Thanks.
Related Posts with Converting continuous variable into categorical
Beginner question, loop command for net returns, error code r(198) "`var' invalid name"Hi everyone, I have a time series set of monthly currency spot rates from multiple countries. I als…
Beginner's question on datasetI have data on online competitions that are held weekly. I have data from 2001 all the way up to 201…
Generate new variable from several variablesI have a survey dataset from several countries from a few time periods. Each country and period has …
Merging on the basis of Date for CRSP stocks dataHello, I am merging the CRSP stock prices dataset with the CRSP value-weighted index on the basis o…
Struggling to convert latitude and longitude to x and y coordinates (geo2xy)Hello I have a dataset of latitude and longitude points that I need to convert to X and Y coordinate…
Subscribe to:
Post Comments (Atom)
0 Response to Converting continuous variable into categorical
Post a Comment