Given a PCM or a parameter object, extract an analogical object for a subset of the dimensions (traits) in the original object.

PCMExtractDimensions(obj, dims = seq_len(PCMNumTraits(obj)), nRepBlocks = 1L)

Arguments

obj

a PCM or a parameter object.

dims

an integer vector; should be a subset or equal to seq_len(PCMNumTraits(obj)) (the default).

nRepBlocks

a positive integer specifying if the specified dimensions should be replicated to obtain a higher dimensional model, where the parameter matrices are block-diagonal with blocks corresponding to dims. Default: 1L.

Value

an object of the same class as obj with a subset of obj's dimensions multiplied nRepBlocks times.

Details

This is an S3 generic