Learn R Programming

rockchalk (version 1.8.157)

religioncrime: Religious beliefs and crime rates

Description

The data national-level summary indicators of public opinion about the existence of heaven and hell as well as the national rate of violent crime.

Usage

data(religioncrime)

Arguments

Format

data.frame: 51 obs. of 3 variables

Author

Paul E. Johnson pauljohn@ku.edu and Anonymous

Examples

Run this code
require(rockchalk)
data(religioncrime)
mod1 <- lm(crime ~ heaven, data=religioncrime)
mod2 <- lm(crime ~ hell, data=religioncrime)
mod3 <- lm(crime ~ heaven + hell, data=religioncrime)
with(religioncrime,
mcGraph1(heaven, hell, crime)
)
with(religioncrime,
mcGraph2(heaven, hell, crime)
)
mod1 <- with(religioncrime,
mcGraph3(heaven, hell, crime)
)
summary(mod1[[1]])
##TODO: Draw more with perspective matrix mod1[[2]]

Run the code above in your browser using DataLab