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
xtmerlogitFriends, I had this query; I am fitting three levels logistic-mixed effect model with Random coeff…
Extracting just the month as a new variable from a complete date Hi, I have a variable that shows me the date of funding in the format, "day, dd/month/year, time"…
merging panel datadear, I have 2 panel datasets which I want to merge. One dataset contains values from 2009 to 2015 …
Linux: Make Stata default application of file type .dta (etc.)How can I change the default application of file types such as .dta, .do, .gph, .smcl to Stata? I su…
Checking to see if one variable is bigger than the otherDear Stata Users, I have two variables (Goal & Pledged). As I am looking to see what is my idea…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying integers
Post a Comment