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
Keeping specific values from a tabDear Statalist, I am wondering if it is possible to know automatically the value for the 5 minus the…
Deadlock in StataDear All, I wonder why the following code causes Stata to stop responding to the BREAK button in th…
Creating new observations by groupDear Statalist members, I am working with data about nutritional intake where participants describe…
The coefficient of my dynamic dependent variable is negativeDear Stata users, I am estimating a dynamic model of y = f(y_1 x1, x2, x3) using GMM. the coefficie…
Run GLS for panel data with (N=816 and T= 8)Hello I run OLS for my panel data ( with N=816, T=8) and check heteroskedasticity as below : Code: …
Subscribe to:
Post Comments (Atom)
0 Response to How to declare "string" condition in If condition
Post a Comment