I have 9 variables (v1 - v9) with binary responses coded as yes = 1 no =2.
I want to replace all he values of no to 0 for all variables at once.
Can anyone help me with the codes.
Related Posts with Replacing values of multiple variables at once
How to forecast counterfactual in ARIMAI am wondering if anyone could suggest codes on how to forecast the counterfactuals in an ARIMA mode…
matrix recursive elementHi, I want to run this code Code: local filas = 300 local columnas = 1 matrix A = J(`filas',`colum…
Multiple McNemar TestHello all, I am doing 10 McNemar test for comparing matched data. Example: mcci 192 0 1 0 1. Just li…
Mann-whiteny U test representationHello I was wondering where to add the asterisk on a bar graph representing proportions of a three-l…
Twoway contour for significant average marginal effectsHi, I run this four-way interaction model in Stata 14: xtreg Y c.X1##c.X2##c.X3##X4 Controls i.cou…
Subscribe to:
Post Comments (Atom)
0 Response to Replacing values of multiple variables at once
Post a Comment