The columns of the model matrix M
is projected on the
orthogonal complement to the matrix (1,t)
. Orthogonality
is defined w.r.t. an inner product defined by the weights weight
.
1 
M 
A model matrix. 
t 
The trend defining a subspace. A numerical vector of length

weight 
Weights defining the inner product of vectors 
The functions is intended to be used in parametrization of ageperiodcohort models.
A fullrank matrix with columns orthogonal to (1,t)
.
Bendix Carstensen, Steno Diabetes Center, http://BendixCarstensen.com, with help from Peter Dalgaard.
projection.ip
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.