nlme (version 3.1-86)

pdConstruct: Construct pdMat Objects

Description

This function is an alternative constructor for the pdMat class associated with object and is mostly used internally in other functions. See the documentation on the principal constructor function, generally with the same name as the pdMat class of object.

Usage

pdConstruct(object, value, form, nam, data, ...)

Arguments

Value

a pdMat object representing a positive-definite matrix, inheriting from the same classes as object.

See Also

pdCompSymm, pdDiag, pdIdent, pdNatural, pdSymm

Examples

Run this code
pd1 <- pdSymm()
pdConstruct(pd1, diag(1:4))

Run the code above in your browser using DataCamp Workspace