Hello,
I am newbie in Stata and I have a problem with stata when I try to declare If condition.
In my DB, I have "country" variable which has "Germany" values but when I run the regression:
"oprobit adl iadl depression_scale chronicw2 if country==Germany". It said that "Germany not found"
or
" oprobit adl iadl depression_scale if "country"=="Germany" ". It said that "no observations"
How can I fix it?
Thank you
Related Posts with How to declare "string" condition in If condition
inverse order of global macro listHI, I would like to inverse the order of a global macro list: Code: global M_per 6 12 24 36 72 12…
Availability of PDF format for graph exportDear All, Stata's electronic help files for graph export mention availability of different file for…
Semi-parametric regression with figure for large datasetDear, Greetings. I have used semipar function of Stata with graph option for 426,000 observations t…
Minimum or maximum from a set contained in global macroHi, I would like to create a local macro that would contain only the maximum value of a set contain…
Reporting format for Stata's own commandsDear All, I've noticed just now that some of Stata's own commands report the output diagnostics usi…
Subscribe to:
Post Comments (Atom)
0 Response to How to declare "string" condition in If condition
Post a Comment