fs | R Documentation |
A symbolic wrapper to indicate a nonparametric term in a formula argument to bsaq, bsaqdpm, bsar, bsardpm, and gbsar.
fs(x)
x |
a vector of the univariate covariate for nonparametric component |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.