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()
Possible Issue with "nnmatch" in Stata 15Hello All (first post, be kind), I am running teffects nnmatch and noticed the the 'Matching Variab…
kdensity of plausible values in PIAAC data using -repest-Hello, I am working with OECD's PIAAC data, a survey of skills of people in OECD countries. The dat…
Date Variable problemHi I am new to Stata, I am finding problem in getting solution for my date variable that is string …
How to move x-axis from y=-0.8 to y=0?Dear all, Now I plot a twoway graph.I want to move the x-axis to zero.Here is my codes and graph.I …
Boostrapping system of equationsHi, I am trying to bootstrap standard errors for a system of equations (its a 2SLS where I create th…
Subscribe to:
Post Comments (Atom)
0 Response to int() and round()
Post a Comment