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
heteroskedasticity in logistic regression modelHi, I have cross sectional data and am using logistic regression. My question is how do I check my …
Postestimation test for cross-sectional time series FGLS regressionHi I'm conducting a study on the determinants of bank profitability in my country. I have data from…
change the color of bars -BOXPLOTHi to everybody, I have done for the first time "Box plot by group with data point" By default, Sta…
Generate weighted median variable by other variablesHello, I have a dataset which lists the year, state, age group, income, and survey weight of indivi…
Different y-axis range on xtline plotsI'm trying to construct some xtline plots using 10 different ids. The range of values of y for id #s…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a variable with three condtions
Post a Comment