Hi,
My dataset contains a variable called "Ratio". Values therein range from 0 to about 500. Some values are whole numbers (0, 1, 2, 3 etc) and some values have decimal points (e.g. 3,47 etc). I want to keep 0 as 0 but change all other whole numbers to 1 and keep the decimal values as they are. Any pointers on how to do this?
Best wishes,
David
Related Posts with Identifying integers
Categorial Variable has Collinearity with Fixed Effects? Help!I'm in urgent need of help and would seriously appreciate your time! I am conducting a regression of…
Problem specifying conditions with ipolate commandHello, I have yearly panel data on 4 variables for all U.S. states, and the data are in wide format…
Loop for adding values of every observation within variableHello statalisters, I regard my puzzle as symple but I cannot get my head around it and I have alre…
generating a Diff-inDiff outcomeHi Everyone, I have this data example below where I need to generate a Diff-outcome. The outcome is…
Sparse group Lasso for multinomial logistic regressionHi everyone, I'm planning to do a multinomial logistic regression and would like to use the sparse …
Subscribe to:
Post Comments (Atom)
0 Response to Identifying integers
Post a Comment