Main Content

getCovariateData

Create design matrix needed for fit

Description

CovData = getCovariateData(PKDataObj) creates CovData, a dataset (Statistics and Machine Learning Toolbox) array containing only the covariate data from the data set in PKDataObj, a PKData object. CovData contains one row for each individual and one column for each covariate.

Use this function to view the covariate data when writing equations for the Expression property of a CovariateModel object.

Input Arguments

collapse all

Data used for fitting, specified as a PKData object.

Output Arguments

collapse all

Covariate data, returned as a dataset.

Version History

Introduced in R2011b