speed {npsm} | R Documentation |
Predict top speed based on miles per gallon
Description
A sample of 82 cars with variables speed and miles per gallon collected.
Usage
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
data(speed)
plot(sp~mpg,data=speed)
rfit(sp~mpg+I(mpg^2),data=speed)
[Package npsm version 2.0.0 Index]