I would like to assign a string variable to all in a group. I want to be able to assign "IA" if any member of the group has IA. I want to create the values in newvalue. My data looks like this
id. val. newvalue
1. IA. IA
1. II. IA
1. IA IA
2. II . (missing since no IA for person 2)
2. II .
2 ID .
3. II. IA
3. II IA
3 IA. IA
4. . IA
4. IA. IA
4 ID. IA
Related Posts with Assign string variable to all in group
Spatial weight matrix and spillover effects in Spatial Durbin ModelDear All, I have a little confusion about the use of spatial weight matrix that I want to get clari…
Convergency not achieved in simulationDear all, I'm running a simulation with GEEs, to avoid the convergency problem, I have limited the …
Problem with instrumental variable regressionI am looking at the effect of sport participation on happiness. Happiness is my dependent variable, …
esttab and global macro for filepath of output tableI am trying to save output tex files in a specific directory after running a batch of regressions. …
Significance of regressor effect with and without moderatorHi, I am running fe panel data regression on a set of companies to explore the effect of firm geogra…
Subscribe to:
Post Comments (Atom)
0 Response to Assign string variable to all in group
Post a Comment