ps_btscs: Create "peace years" or "spells" by cross-sectional unit, more generally
Description
ps_btscs() allows you to create spells ("peace years" in
the international conflict context) between observations of some event. This
will allow the researcher to better model temporal dependence in binary time-series
cross-section ("BTSCS") models. It is an improvement on sbtscs() (included in
this package) by its ability to more flexibly work with data that have lots of NAs
that bracket the observed event data. It is used in the peacesciencer package.