Hello fellow stata-users,
Does anyone know how to generate a new variable that solely ranges between 0-1 by combining two variables that themselves have these two values? That is, if one of the variables has a 1 i want the new variable to show 1 even if the other variable solely show 0. I suppose I should use the "if" command?
Please help!
/Johan
Related Posts with Generating variable with maximum value 1 by combining two
Doubts about interpretation of the estimated coefficients using a stochastic frontier modelIn my thesis, I´m estiming a stochastic frontier model (SFM). The first equation estimates the produ…
Interaction with instrumented variableI am measuring the impact of distance to the nearest city on employment outcomes. Y = b0 + b1*X1 + …
Looping correlation between variablesHi, With following data: Code: * Example generated by -dataex-. To install: ssc install dataex cle…
Fractional RegressionHello, I have to perform a regression and my dependent variable is a probability. My two independen…
How to do a EM for my mixture modelDear statalist: I want to do a mixture model of two ols whose coffients are constrained to be same.I…
Subscribe to:
Post Comments (Atom)
0 Response to Generating variable with maximum value 1 by combining two
Post a Comment