speed: Predict top speed based on miles per gallon

Description Usage Format Source References Examples

Description

A sample of 82 cars with variables speed and miles per gallon collected.

Usage

1
data("speed")

Format

A data frame with 82 observations on the following 2 variables.

mpg

Miles per gallon

sp

a numeric vector

Source

Higgins (2003) Introduction to modern nonparmetric statistics.

References

Kloke, J. and McKean, J.W. (2014), Nonparametric statistcal methods using R, Boca Raton, FL: Chapman-Hall.

Examples

1
2
3
data(speed)
plot(sp~mpg,data=speed)
rfit(sp~mpg+I(mpg^2),data=speed)

kloke/npsm documentation built on May 18, 2017, 9:42 p.m.