| predict.deform | R Documentation | 
deform objectPredict from a fitted deform object
## S3 method for class 'deform'
predict(object, newdata = NULL, ...)
| object | a fitted  | 
| newdata | a 2-column matrix of x and y coordinates | 
| ... | currently just a placeholder | 
A 2-column matrix of predicted x and y points for deformations and a (2 + q)-column matrix for q-dimensional expansions.
# fit a deformation model
data(solar)
m0 <- deform(solar$x, solar$z, solar$n)
# predict D-space points for original locations
predict(m0)
# predictions for one-dimensional expansion model with specified locations 
# and standard error estimates
data(solar)
m1 <- expand(solar$x, solar$z, solar$n)
xvals <- seq(-123.3, -122.2, by = .1)
yvals <- seq(49, 49.4, by = .1)
xyvals <- expand.grid(xvals, yvals)
predict(m1, xyvals, se.fit = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.