predict.batch_lm: Run predictions on batch_lm models

Description Usage Arguments Value

View source: R/predict.batch_lm.R

Description

Run predictions on batch_lm models

Usage

1
2
## S3 method for class 'batch_lm'
predict(models = NULL, predictargs = NULL, over = NULL, newdata = NULL)

Arguments

models

This is a named list of bam models, probably resulting from batch_lm.

predictargs

This is a named list of arguments for the predict function.

over

The name of the column in newdata which contains the levels over which the batch_lm was originally split (and should correspond to the names of the listed models)

newdata

The data frame to be passed to predict.lm after splitting by over. Currently, all predictions must be run anew - i.e. we do not access $fitted.

Value

A vector with predictions in the order of rows of newdata.


EcoGRAPH/clusterapply documentation built on March 8, 2021, 1:55 p.m.