Hi people,
I'm a total noobs to Stata and have spent two hours trying ot figure this dumb thing out. I'll i'm trying to do is relabel some data points in my column. Here is the command I am using:
label define postnatal_steroids_chronic_lung_label 0 "none" 7 "n/a" 11 "UCSF" 12 "OSH" 13 "UCSF/OSH"
label val postnatal_steroids_chronic_lung postnatal_steroids_chronic_lung_label
I keep getting the error message:
. label define postnatal_steroids_chronic_lung_label 0 "none" 7 "n/a" 11 "UCSF" 12 "OSH" 13 "UCSF/O
> SH"
postnatal_steroids_chronic_lung_label invalid name
r(198);
I am copying the variable directly from stata. Not sure what to do. HELP!
Thanks!
Related Posts with Beginner question
Binary Dependent Variable Analysis with an Instrumental VariableHi Statalist I have looked at previous posts regarding logit models with IV and it seems that the c…
Wide to long reshape-- Is it possible to include two variables in code for "j"Dear Stata experts, Here's the sample data ID Clinical_1 Clinical_2 Clinical_3 Visit_4 Visit_5 1 0…
Reshape wide to long with term and yearHi Statalist, I'm working with college scholarship data that comes by term and year. The data curre…
How to report hazard ratio as 1 unit change in SDHi all, I am running survival analyses and I would like to report my hazard ratio's as 1 SD change …
Loop for Blood pressure recodificationHi all, I have some data of Blood pressure in pediatric data, my task is recode Blood pressure in: …
Subscribe to:
Post Comments (Atom)
0 Response to Beginner question
Post a Comment