s: mgcv constructor 's'

View source: R/basics.R

sR Documentation

mgcv constructor s

Description

Provides interface between mgcv::s and BNSP. s(...) calls mgcv::smoothCon(mgcv::s(...),...

Usage

s(..., data, knots = NULL, absorb.cons = FALSE, scale.penalty = TRUE, 
n = nrow(data), dataX = NULL, null.space.penalty = FALSE, sparse.cons = 0, 
diagonal.penalty = FALSE, apply.by = TRUE, modCon = 0, k = -1, fx = FALSE, 
bs = "tp", m = NA, by = NA, xt = NULL, id = NULL, sp = NULL, pc = NULL)

Arguments

...

a list of variables. See mgcv::s

data

see mgcv::smoothCon

knots

see mgcv::knots

absorb.cons

see mgcv::smoothCon

scale.penalty

see mgcv::smoothCon

n

see mgcv::smoothCon

dataX

see mgcv::smoothCon

null.space.penalty

see mgcv::smoothCon

sparse.cons

see mgcv::smoothCon

diagonal.penalty

see mgcv::smoothCon

apply.by

see mgcv::smoothCon

modCon

see mgcv::smoothCon

k

see mgcv::s

fx

see mgcv::s

bs

see mgcv::s

m

see mgcv::s

by

see mgcv::s

xt

see mgcv::s

id

see mgcv::s

sp

see mgcv::s

pc

see mgcv::s

Details

The most relevant arguments for BNSP users are the list of variables ..., knots, absorb.cons, bs, and by.

Value

A design matrix that specifies a smooth term in a model.

Author(s)

Georgios Papageorgiou gpapageo@gmail.com


BNSP documentation built on May 31, 2023, 7:05 p.m.