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
How to calculate median of 5 year Age category of 15-49 year women sample in DHSDear Statalist May I request how to calculate for Median of 5 year age category of 15-49 year women…
Meta-Analyses-HeterogeneityHello, I ran a meta-analyses and I found a statistical significant heterogeneity on my data. After …
New version of vallabsave on SSCThanks as always to Kit Baum, a new version of the vallabsave package is now available for download …
Predicting factorscores after conducting a CFA based on summary statisticsI have a dataset consisting of 11 items of binary data (0/1) that will be the basis for my dependent…
System GMM and fixed effectsDear all, I am trying to estimate a model for panel data and I was thinking about using System GMM. …
Subscribe to:
Post Comments (Atom)
0 Response to Generating variable with maximum value 1 by combining two
Post a Comment