Arguments
- mdata
A PM_data or PMmatrix object
Details
When given a PM_data or PMmatrix object, will return a list with the number of covariates, their names, and the starting and ending column numbers
Examples
library(PmetricsData)
getCov(dataEx)
#> $ncov
#> [1] 5
#>
#> $covnames
#> [1] "wt" "africa" "age" "gender" "height"
#>
#> $covstart
#> [1] 15
#>
#> $covend
#> [1] 19
#>