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()
Distance between latent score and lower cutoff after Ordered Probit?Dear colleagues, I have regressed an ordered ordinal outcome y = {1,2,3,4,5,6,8.9,10} on explanator…
) required r(100) (Hard time changing labels)Hello everyone, I am taking my first course in econometrics and therefore very much an amateur. At…
summarize juxtaposed variables as oneDear Stata users, Suppose we have a household survey data. And we have ages of every family members…
Very Short code ?I'm using Stata 15.1 and I'm trying to replicate an example from the UCLA Statistical consulting sit…
Binary moderator variable and independent variableHi! I am new with statalist, so hopefully this is how to use it. But I am currently doing my thesi…
Subscribe to:
Post Comments (Atom)
0 Response to int() and round()
Post a Comment