I'm currently working on a project for which I need to differ my main explanatory variable. I'm building an individual fixed effects model with plm and need to "cut in half" a variable. Unfortunately I can't provide a repex but a part of the code.
low_troop <- plm(POLSTAB ~ US + RDURAB + DEMOC + POP, data = US, index = c('COUNTRY'), model = 'within', effect = "individual")
high_troop <- plm(POLSTAB ~ US+ RDURAB + DEMOC + POP, data = US, index = c('COUNTRY'), model = 'within', effect = "individual"
In my panel data, US is the number of US Soldiers abroad. I'd love to have one plm for all data where the value for US is >100 and one for US value <100. Is this possible without creating a new dataset?
Thank you all so much for your help.
Regards,
Lawrence