I have an unbalanced panel data about U.S. equity funds Variables:
yrqt: a date variable, such as 1981q1, 1981q2…
wficn: fund identifier
fund_name: the name of a mutual fund
Mutual fund may change its name over time. I want to create a new variable to identify these quarters when the fund’s name is different from the previous quarter. We can call this new variable is_change, whose value takes 1 if the fund’s name at current quarter is different from last quarter, and takes value of 0 if the fund’s name stays the same.
How can I accomplish the task described above with stata codes? Any advice would be greatly appreciated. Thank you.Array
Related Posts with how to identify a mutual fund changes its name and when
Filling in Missing YearsHi Statalist, I'm trying to fill in missing years for my dataset, but something is off. The origina…
real salary matrix calculationHi all, I would like to generate a matrix that contains in the first column the average of a variab…
How to make a loop continue working if a variable it is not found?Hello. I am trying to generate graphs from some variables. I do not have all possible combinations …
nwcommands "invalid" errorHello, I just discovered the nwcommands in stata for network analysis. This will make life so much e…
Looping through two different sets of valuesI have data from several years. Each is stored in a file entitled "year 1" "year 2" .... "year 8". T…
Subscribe to:
Post Comments (Atom)
0 Response to how to identify a mutual fund changes its name and when
Post a Comment