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
Easier way to get casewise statistics using tabstat?Hi, I need a command/code that help me to get casewise descriptive statistics using "tabstat" witho…
Pooled OLS and Random EffectsHello everyone, Was just concerned as I have a set of panel data obvservations, and when running reg…
Questions about Logit regression applicable in my research design.Hello, everyone. I am not new to use Statalist, but this is the first time I am not sure I find an …
Support: most efficient way to enter dataHi everyone, I am a total newbie to Stata, so perhaps some of you can help me with this issue: For…
conflicting results with command ivprobit and marginsHi all! When I ran ivprobit, I got positive and significant coefficient for my endogenous independen…
Subscribe to:
Post Comments (Atom)
0 Response to Max function doesn't return the exact result
Post a Comment