Question: * * 1 . Identify players who switched teams * * gen team _ switch = 0 replace team _ switch = 1 if strpos
Identify players who switched teams
gen teamswitch
replace teamswitch if strposteam
Define the team at start of season for players who switched
gen teamstart team
replace teamstart
subinstrteam strposteam if teamswitch
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
