Learn R Programming

multisensi (version 2.1-1)

predict.gsi: A function to predict multivariate output

Description

The function predict.gsi generates predicted multivariate output for user-specified combinations of levels of the input factors.

Usage

# S3 method for gsi
predict(object, newdata, ...)

Arguments

object

Object of class gsi.

newdata

An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used. need to be same factors and levels as for obtained the gsi object.

...

others parameters

Value

a data.frame of predicted values for newdata

Details

Only available if the gsi object was obtained with analysis.anoasg and analysis.args$keep.outputs=TRUE.

See Also

gsi, multisensi, analysis.anoasg

Examples

Run this code
# NOT RUN {
  data(biomasseX)
  data(biomasseY)
  x=multisensi(design=biomasseX,model=biomasseY,basis=basis.ACP,
               analysis=analysis.anoasg,
               analysis.args=list(formula=2, keep.outputs=TRUE))
  newdata=as.data.frame(apply(biomasseX,2,unique))
  predict(x,newdata)
# }

Run the code above in your browser using DataLab