I'm wondering how to replace missing values in STATA for certain rows only (as noted above).
I have a long column with 842 cells. The first 160 should be 1, and the rest should be 0. However, I have missing values scattered throughout 1-842. How can I replace the missing values in 1:160 with 1, and the missing values in 161:842 with 0?
Related Posts with How to replace missing values for certain rows in STATA
Estimate utility from going to school - Discrete choice model.Hello, I need to estimate utility from going to school in a discrete choice model. In the dataset,…
Alternative to tobit regression for left-censored biomarker variableHi, I'm a novice when it comes to stats so apologies if the question is a bit stupid! I'm currentl…
pscore or pscore 2can anyone help me with pscore 2 command or provide me details on the authors who generated pscore2 …
about odds,why the two command get the different results?a list of numbers,as follows drug used unused case 55 128 control 19 164 when use co…
Changing data based on conditionHi, I am using Stata 15 on Windows 10 OS. I have data collected in several rounds as demonstrated i…
Subscribe to:
Post Comments (Atom)
0 Response to How to replace missing values for certain rows in STATA
Post a Comment