Make predictions using pco basis terms
pco_predict_preprocess(model, newdata = NULL, dist_list)
model |
a fitted |
newdata |
data frame including the new values for any
non- |
dist_list |
a list of |
Models with pco
basis terms are fitted by inputting distances
among the observations and then regressing (with a ridge penalty) on leading
principal coordinates arising from these distances. To perform prediction, we
must input the distances from the new data points to the original points, and
then "insert" the former into the principal coordinate space by the
interpolation method of Gower (1968) (see also Miller, 2012).
An example of how to use this function in practice is shown in
smooth.construct.pco.smooth.spec
.
a data.frame
with the coordinates for the new data
inserted into principal coordinate space, in addition to the supplied
newdata
if this was non-NULL
. This can be used as the
newdata
argument in a call to predict.gam
.
David L Miller
Gower, J. C. (1968). Adding a point to vector diagrams in multivariate analysis. Biometrika, 55(3), 582-585. https://doi.org/10.1093/biomet/55.3.582
Miller, D. L. (2012). On smooth models for complex domains and distances. PhD dissertation, Department of Mathematical Sciences, University of Bath.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.