I have been using the syntax format below to replace the data in the columns with the relevant med_costs which has worked for 4 sets of columns. When I run the code for the eczema related column data with the costs listed in the med_costs column the below syntax isn't working.
gen Eczema_related=.
replace Eczema_related=med_costs if med_name_group=="Eczema_related"
Do you have any suggestions of how to fix this?
Related Posts with Replace function- no real changes issue
Bayesian Model AverageHi, I have recently ran xtlogit models and to further get better estimates I assume from my understa…
How to calculate Difference before and after treatment for panel data? [Difference in Differences]Hi everyone, I have a panel data on which I am trying to perform DID. The difficulty I am facing is…
Fitting a frailty Cox model: what does the error "flat region resulting in a missing likelihood" mean?I am a Stata novice (Stata -V14). I have a data set which consists of 404 doctors each independentl…
stripplot in the same graph (same axes for both distributions)I have a variable VALUE with two distinct groups noted by GROUP (dummy), I would like to write: Co…
r(603)Hi, I am trying to do the impulse response function after running the varbasic model. I have slected…
Subscribe to:
Post Comments (Atom)
0 Response to Replace function- no real changes issue
Post a Comment