Default covariate status matrix
Usage
createStatusMatrix(
strata = NULL,
covariateNames = NULL,
default.other = 3,
default.length = 0,
covariates = "Length_num",
Data = NULL,
column.strata = "Material_cat",
column.length = NULL,
note = TRUE
)
Arguments
- strata
names of strata (e.g. unique values in column stratum of masterdata)
- covariateNames
names of covariates
- default.other
default status value to be used in any cell of the matrix, except the cells in column LENGTH. Default: 3
- default.length
status value to be used in column LENGTH. Default: 0
- covariates
names of columns in
Data
that shall be used as covariates- Data
data frame with one row per inspection
- column.strata
name of column in
Data
containing the stratifying variable. Default: "Material_cat", i.e. strata are built by material- column.length
name of column in
Data
containing the pipe lengths- note
if
TRUE
(default) a note about the length column is given