Projection of a model matrix on to the orthogonal complement of a trend.
The columns of the model matrix
M is projected on the
orthogonal complement to the matrix
is defined w.r.t. an inner product defined by the weights
A model matrix.
The trend defining a subspace. A numerical vector of length
Weights defining the inner product of vectors
The functions is intended to be used in parametrization of age-period-cohort models.
A full-rank matrix with columns orthogonal to
Bendix Carstensen, Steno Diabetes Center, http://BendixCarstensen.com, with help from Peter Dalgaard.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.