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
Spearman correlation table export into ExcelHi everyone, I have a problem trying to export my Spearman correlation results into Excel. I use: m…
Interpretation Interactionterm in fixed effect regressionDear all , I have performed a fixed effect regression with cluster(id) xreg y i.FFF i.young FFF#yo…
merging datasets with different dimensionsHi all, I would like to merge together 16 datasets which are defined by country and are made as fol…
Using returned results in r() with -egen- is not working. Is that a bug?Why is this not working? Code: . sysuse auto, clear (1978 Automobile Data) . summ price Varia…
xtprobit margin problemHello to All Stata Users! HTML Code: xtoprobit y x z, vce(cluster id) is the model I run . However…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying integers
Post a Comment