cv.plbpsm: Cross-validation for plbpsm

Description Usage Arguments

View source: R/cv_plbpsm.R

Description

Performs k-fold cross validation for GGAMs

Usage

1
2
cv.plbpsm(formula, data, kfold = 10, repeat.times = 1, family,
  group = NULL, ...)

Arguments

formula

a PLBPSM formula. These are exactly like the formula for a GLM except that univariable and bivariate smooth terms.

data

A data frame or list containing the model response variable and covariates required by the formula. By default the variables are taken from environment(formula).

kfold

number of folds splitted

repeat.times

repeated times for cross validation

family

This is a family object specifying the distribution and link to use in fitting etc. See glm and family for more details.

group

whether model identification is conducted for each covariates

...

other arguments.


funstatpackages/GgAM documentation built on Nov. 4, 2019, 12:59 p.m.