Description Usage Format Details Source References Examples
A simple data set with only 6 observations.
1 |
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
smoking is saved as a data frame.
none
Hilbe, Joseph M (2014), Modeling Count Data, Cambridge University Press
1 2 3 4 5 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.