subFim(fim, inds) works just like fim[inds, inds]. Use subFim instead of normal matrix subsetting functions to preserve attributes.

subFim(fim, inds)

Arguments

fim

A matrix with row and column names containing the FIM, as produced by calcFimFromMatrix or calcFimFromModel.

inds

Vector of indices of elements to keep. They may be provided as numerals or names.

Value

The submatrix fim[inds, inds]. Returns NULL and prints an error if the input fim is not a valid FIM. Returns the input fim and prints an error if the result of subsetting is not a valid FIM. This should not be possible.

Author

Martijn van Noort