The createSccsEras function in the SelfControlledCaseSeries package curently does too many things at once, like impose the naive period, select the outcome, define the eras, etc. We may want to have a createStudyPopulation function like in CohortMethod that performs some of these steps while keeping track of how many subjects are lost at each step. This could then also feed into the several diagnostics functions.
The createSccsEras function in the SelfControlledCaseSeries package curently does too many things at once, like impose the naive period, select the outcome, define the eras, etc. We may want to have a createStudyPopulation function like in CohortMethod that performs some of these steps while keeping track of how many subjects are lost at each step. This could then also feed into the several diagnostics functions.