formula.plbpsm: PLBPSM formula

Description Usage Arguments Details Value See Also

View source: R/formula_plbpsm.R

Description

Description of plbpsm formula (see Details), and how to extract it from a fitted plbpsm object.

Usage

1
2
## S3 method for class 'plbpsm'
formula(x, ...)

Arguments

x

fitted model objects of class gam (see plbpsmObject) as produced by plbpsm().

...

un-used in this case

Details

The formulae supplied to plbpsm are exactly like those supplied to glm except that univataible and bivariate smooth terms,u and b can be added to the right hand side (and . is not supported in plbpsm formulae). Smooth terms are specified by expressions of the form: f(x1,x2,...,r=1,d=2,fx=FALSE). If d is not specified then basis specific defaults are used. Note that these defaults are essentially arbitrary, and it is important to check that they are not so big that they cause oversmoothing. fx is used to indicate whether or not this term should be unpenalized. Formulae can involve nested or “overlapping” terms such as y~u(x)+u(z)+f(x,z).

Value

Returns the model formula, x$formula. Provided so that anova methods print an appropriate description of the model.

See Also

plbpsm


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