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
Interaction Effect between a Dummy Variable and Quadratic TermHi, I am running a fe regression model on US listed companies to study the effect of lagged Relative…
Reghdfe Absorbed DoFHi Everyone, When I use reghdfe and cluster my standard errors at the fixed effect level, my fixed …
Analyze the stickiness of variableHi, I have a firm-year (GVKEY year) panel data. I would like to know how sticky the variable of inte…
data manipulationDear All, Is there a one line command for the following "wanted" variable? Code: * Example generate…
Cointegration test - necessary to use first-differenced variables?Hi! I am working on a project with a short panel data structure and have discovered non-stationarit…
Subscribe to:
Post Comments (Atom)
0 Response to Generating variable with maximum value 1 by combining two
Post a Comment