I am rounding values of a variable to the closest integer.
For some reason, int(x) and round(x) give me two slightly different numbers.
The correlation between the variable rounded with int() and the same variable but rounded with round(x) is about 0.95.
Is there some minimal difference in the way Stata computes the integers?
Related Posts with int() and round()
Trouble Generating Variable dependant on periodArray Above is a picture of a subset of my data. hs10 refers to a specific product being sold and m…
datatypes and Logistic regressionGeneral question Do I have a special data format when performing logistic regression? What I mean i…
Episode splittingHi, I am trying to split my time-varying education variable, didn't figure out something. In my data…
myqreg vs qregI'm working with a code (from a published paper) and it defines the following program: Code: progr…
Help Fixing Bar Graph of GDP and Dummy VariablesDear all, I am using Stata 16, on mac. I used the following command in Stata: reg lnGDP lnagedpop l…
Subscribe to:
Post Comments (Atom)
0 Response to int() and round()
Post a Comment