I am using a data set of 50 countries which are separated into four regions.
I want to create a variable of regional contagion, where recgontagion for country j takes one if and only if there is a crisis in at least one country other than country j and this country is in the same region as country j.
I have been the below command but it doesn't work:
replace regcontagion=1 if (evnt3w==1&country!=country ®ion_id==region_id)
Related Posts with Creating a variable with three condtions
Difference between Vce and SVYI have stratified sample, what is the difference between vce and svy to correct the standard errors …
Ramsey RESET testHi, How can I interpret these results from the Ramsey RESET test? How can I know at which level can…
Generating residuals with miHi all, On p. 296 of the Stata 16 MI manual, the following is stated: The MI predictions shoul…
Regression Command for pooled DataHi.. I have four countries cross section data in my sample. i regressed separate regression for each…
F-statistics so high.Hi. I'm PhD student. I have problem to analyze my result. Can i know, why F-statistics is so big. It…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a variable with three condtions
Post a Comment