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()
Variable transformation for SEMHi Statalisters, I am trying to do a SEM on my data (SEM was chosen because my hypothesis involves …
Decimal places for identification variableI am merging data and some of my ID variables have decimal places. I tried using the real function b…
Testing for differences between groupsHello! I was tasked with proving how having the first two children of the same sex predicts whether…
Nonparametric regression: lpoly vs npgressBoth commands perform local-linear kernel estimation and allow for visulizing estimates, but what ar…
Trouble merging datasetsI am trying to merge two data sets the common variable I want to use use is id. I get this error whe…
Subscribe to:
Post Comments (Atom)
0 Response to int() and round()
Post a Comment