Description Usage Arguments Value Author(s) Examples
Creates polynomial variables.
1 | polynomial(x,degree=2,center=mean(x,na.rm=T), version=F)
|
x |
variable used to create the polynomials. |
degree |
the maximum degree polynomial to be returned. Polynomials of degree <= |
center |
the value to center the polynomials at. |
version |
if |
A matrix containing the linear splines.
Scott S. Emerson, M.D., Ph.D., Andrew J. Spieker, Brian D. Williamson
1 2 3 4 5 | # Reading in a dataset
mri <- read.table("http://www.emersonstatistics.com/datasets/mri.txt", header=TRUE)
attach(mri)
# Create a polynomial on ldl
polynomial(ldl, degree=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.