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
Checking Residuals after running MswitchI am working on the Markov Switching Model (using mswitch command), I have calculated standardized r…
Construct matrix counting pairwise agreementsI'm interested in a set of problems in which the data from each individual is a vector of integer-va…
LD calculation by logit regressionHello, I would like to know how I can calculate the LD50, LD90 and LD 95 (lethal dose) for bioassay…
Matching variables in CEM.Hi all - I am using CEM in stata and have a quick question. I am using four variables in my dataset …
How to solve the problem of endogeneity of a policy (gravity model)?Hi everyone, I analyze the impact of an agreement concluded between 4 countries on the mobility of p…
Subscribe to:
Post Comments (Atom)
0 Response to Max function doesn't return the exact result
Post a Comment