DataCheck(object, studyStart, studyEnd, autofix = rep(0, 7),
silent = TRUE)
nt+3
represent the observation window of nt years. This is foldetails
). This should be used with extreme caution. We recommend going back to the individual-based data and fixing each error "by hand".TRUE
= the data have no apparent errors, and FALSE
= there is at leat one error.autofix
allows the user to fix the potential errors by specifying a code for each fix. Below are the descriptions of the actions that are taken depending on the error type and the fix code:Type 1: 0 = do nothing; 1 = remove from dataframe.
Type 2: 0 = do nothing; 1 = remove from dataframe.
Type 3: 0 = do nothing; 1 = replace death records with 0; 2 = replace birth records with 0; 3 = replace both birth and death records with 0.
Type 4: 0 = do nothing; 1 = remove spurious post-death observations.
Type 5: 0 = do nothing; 1 = remove observations that pre-date year of birth.
Type 6: 0 = do nothing; 1 = replace birth year element of observation matrix with 0.
Type 7: 0 = do nothing; 1 = replace death year element of observation matrix with 0.
basta