cvscore: Cross Validation

Description Usage Arguments Author(s) Examples

View source: R/cvscore.R

Description

Uses cross-validation to score how accurately a a linear, quadratic, cubic, and 4th and 5th degree polynomial models will perform when used in prediction.

Usage

1
  cvscore(x, y)

Arguments

x

is the independent variable

y

is the dependent variable

Author(s)

Katie Dodds k.dodds@utah.edu

Examples

1
2
3
4
attach(mtcars)
x=wt
y=mpg
cvscore(x,y)

JackStat/CompPack documentation built on May 7, 2019, 10:16 a.m.