-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Hi Paul,
Thanks so much for making this code available! I'm working with the R
version of your code, but I have a question about the way you manipulate the "local" data matrix, as in the code block from your example below:
BAR_local %>%
select(-sh_ind_) %>%
mutate(ind = str_glue("t{year}_init_sh_ind_{ind}")) %>%
spread(ind, init_sh_ind_, fill = 0) %>%
print() -> BAR_local2
Why do you fill the init_sh_ind_
variable with zeros for the non-initial year entries? So your initial shares come from the year 1980, but you rework the data matrix so that the initial share is set equal to zero in all non-1980 years. Why are the shares not set equal to the initial shares in all years? Afterall, this is how the original data matrix is constructed.
Thanks for the help, and thanks again for the code! Very helpful!
Metadata
Metadata
Assignees
Labels
No labels