smoking: smoking

Description Usage Format Details Source References Examples

Description

A simple data set with only 6 observations.

Usage

1

Format

A data frame with 6 observations on the following 4 variables.

sbp

systolic blood pressure of subject

male

1=male; 0=female

smoker

1=hist of smoking; 0= no hist of smoking

age

age of subject

Details

smoking is saved as a data frame.

Source

none

References

Hilbe, Joseph M (2014), Modeling Count Data, Cambridge University Press

Examples

1
2
3
4
5
sbp    <- c(131,132,122,119,123,115)
male   <- c(1,1,1,0,0,0)
smoker <- c(1,1,0,0,1,0)
age    <- c(34,36,30,32,26,23)
summary(reg1 <- lm(sbp~ male+smoker+age))

Example output

Loading required package: msme
Loading required package: MASS
Loading required package: lattice
Loading required package: sandwich

Call:
lm(formula = sbp ~ male + smoker + age)

Residuals:
       1        2        3        4        5        6 
 0.04418  0.10457 -0.14875 -0.03976 -0.14875  0.18851 

Coefficients:
             Estimate Std. Error t value Pr(>|t|)    
(Intercept) 104.00589    0.77516  134.17 5.55e-05 ***
male          4.04860    0.25077   16.14 0.003815 ** 
smoker        6.92784    0.19467   35.59 0.000789 ***
age           0.46981    0.02886   16.28 0.003752 ** 
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 0.2171 on 2 degrees of freedom
Multiple R-squared:  0.9996,	Adjusted R-squared:  0.9989 
F-statistic:  1579 on 3 and 2 DF,  p-value: 0.000633

COUNT documentation built on May 2, 2019, 2:37 a.m.

Related to smoking in COUNT...