Last data update: 2014.03.03

R: Data on density of vehicles and average speed
E1.1R Documentation

Data on density of vehicles and average speed

Description

The E1.1 data frame has 24 rows and 2 columns.

Usage

data(E1.1)

Format

This data frame contains the following columns:

DENSITY

a numeric vector, vehicles per mile.

SPEED

a numeric vector, miles per hour.

Details

Example 1.1 page 2 in Sen and Srivastava.

Source

Huber, M.J (1957) Effect of temporary bridge on Parkway performance. Highway Research Board Bulletin 167 63–74.

Examples

data(E1.1)
attach(E1.1)
plot(DENSITY, sqrt(SPEED))
E1.1.m1 <- lm(sqrt(SPEED) ~ DENSITY + I(DENSITY^2), data=E1.1)
summary(E1.1.m1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SenSrivastava)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SenSrivastava/E1.1.Rd_%03d_medium.png", width=480, height=480)
> ### Name: E1.1
> ### Title: Data on density of vehicles and average speed
> ### Aliases: E1.1
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(E1.1)
> attach(E1.1)
> plot(DENSITY, sqrt(SPEED))
> E1.1.m1 <- lm(sqrt(SPEED) ~ DENSITY + I(DENSITY^2), data=E1.1)
> summary(E1.1.m1)

Call:
lm(formula = sqrt(SPEED) ~ DENSITY + I(DENSITY^2), data = E1.1)

Residuals:
      Min        1Q    Median        3Q       Max 
-0.249086 -0.057458 -0.001957  0.048387  0.198584 

Coefficients:
               Estimate Std. Error t value Pr(>|t|)    
(Intercept)   7.003e+00  8.791e-02  79.656  < 2e-16 ***
DENSITY      -5.069e-02  2.721e-03 -18.631 1.54e-14 ***
I(DENSITY^2)  1.486e-04  1.732e-05   8.578 2.64e-08 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 0.102 on 21 degrees of freedom
Multiple R-squared:  0.9931,	Adjusted R-squared:  0.9924 
F-statistic:  1500 on 2 and 21 DF,  p-value: < 2.2e-16

> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>