fs {bsamGP}R Documentation

Specify a Fourier Basis Fit in a BSAM Formula

Description

A symbolic wrapper to indicate a nonparametric term in a formula argument to bsaq, bsaqdpm, bsar, bsardpm, and gbsar.

Usage

fs(x)

Arguments

x

a vector of the univariate covariate for nonparametric component

Examples

## Not run: 

# fit x using a Fourier basis
y ~ w + fs(x)

# fit x1 and x2 using a Fourier basis
y ~ fs(x1) + fs(x2)


## End(Not run)

[Package bsamGP version 1.2.5 Index]