Parameters(survey)
2. date_in_month_or_year: the programme tries to determine whether times at events are given in months (1) or years (2). The related global variable timeunit is
3. numstates: number of states in the state space (produced by StateSpace called by Parameters)
4. namstates: labels for the states (determined from the character variable path) (produced by StateSpace called by Parameters)
5. iagelow: lowest age in the (sample) population (estimated from CMCs)
6. iagehigh: highest age in the (sample) population (idem)
7. namage: labels for the single years of age from the lowest age (iagelow) to the highest age (iagehigh)
8. nage: number of age groups: iagehigh - iagelow + 1
9. locpath: number of the column in the survey data that contains the state sequence (path variable)
10. ncmc_tr: number of different events in the observation window. It is determined by the number of dates of transitions in the Biogaph data set. It is the number of columns in the data set following the state sequence variable path: ncol(survey)-locpath. It may also be determined as the maximum number of states occupied by a subject minus one: max(nchar(survey$path)) - 1. The number of different events is also represented by maxtrans.
11. ncovariates: number of covariates
StateSpace
, stringf
# Example 1
data(GLHS)
z <- Parameters(GLHS)
# Example 2
data (NLOG98)
z <- Parameters(NLOG98)
Run the code above in your browser using DataLab