Hello,
I have a problem with the max() function. I have a dataset with several variables and one of these variables' maximum value is 83.2. To proceed with some calculations I need a column in which I report this value and I have to do this operation with several other times. For this reason I decided to implement the function max in the following way:
egen newvar = max(old_variable)
I'm sure that the result should be 83.2 but my new variable is an approximation of this value (specifically, 83.199997). How is it possible? Is it possible to have the exact value?
Thanks a lot,
Federico
Related Posts with Max function doesn't return the exact result
Planting multiple regressionHey, I hope you all safe and well. I'm a new to STATA and doing multiple regression modeling using x…
Bin by day on x-axis from clockI have a continuous clock variable, with a cumulative count over time. I want to plot the counts ov…
Planting multiple regressionHey, I hope you all safe and well. I'm a new to STATA and doing multiple regression modeling using x…
Planting multiple regressionHey, I hope you all safe and well. I'm a new to STATA and doing multiple regression modeling using x…
difference-in-difference analysis with a random effects modelDear all, So far I learned that DiD is used with a Fixed effects model. But I just read a paper of …
Subscribe to:
Post Comments (Atom)
0 Response to Max function doesn't return the exact result
Post a Comment