terms.bamlss

0th

Percentile

BAMLSS Model Terms

Extract terms.objects for BAMLSS.

Keywords
models, regression
Usage
# S3 method for bamlss
terms(x, specials = NULL, data = NULL,
  model = NULL, pterms = TRUE, sterms = TRUE,
  drop = TRUE, ...)

# S3 method for bamlss.frame terms(x, specials = NULL, data = NULL, model = NULL, pterms = TRUE, sterms = TRUE, drop = TRUE, ...)

# S3 method for bamlss.formula terms(x, specials = NULL, data = NULL, model = NULL, pterms = TRUE, sterms = TRUE, drop = TRUE, ...)

Arguments
x

An link{bamlss}, bamlss.frame or bamlss.formula object.

specials

See terms.object.

data

Data passed to terms.formula.

model

Character or integer, specifies the model for which terms should be returned.

pterms

Should parametric terms be part of the object?

sterms

Should smooth terms be part of the object?

drop

If terms for only one model are returned, the list structure is dropped.

Arguments passed to bamlss.formula.

Value

Object of class "bamlss.terms", a list of terms.objects, depending on the structure of the bamlss.formula object.

See Also

bamlss, bamlss.frame, bamlss.formula.

Aliases
  • terms.bamlss
  • terms.bamlss.frame
  • terms.bamlss.formula
Examples
# NOT RUN {
## Model formula.
f <- list(
  num ~ x1 + x2 + id,
  sigma ~ x3 + fac + lon + lat
)

## Create the terms object.
terms(bamlss.formula(f))
# }
Documentation reproduced from package bamlss, version 1.1-2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.