Learn R Programming

npsm (version 2.0.0)

speed: 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")

Arguments

Format

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

mpg

Miles per gallon

sp

a numeric vector

References

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

Examples

Run this code
data(speed)
plot(sp~mpg,data=speed)
rfit(sp~mpg+I(mpg^2),data=speed)

Run the code above in your browser using DataLab