Learn R Programming

rsq (version 1.1)

lifetime: Lifetimes in Two Different Environments.

Description

There are 27 tests in each of the two environments.

Usage

data("lifetime")

Arguments

Format

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

time

the lifetime (x10).

env

the environment of each test (kg/mm^2).

Details

This data set is discussed by Wang et al. (1992).

See Also

rsq, rsq.partial, pcor, simglm.

Examples

Run this code
# NOT RUN {
data(lifetime)
summary(lifetime)
head(lifetime)

attach(lifetime)
igfit <- glm(time~env,family=inverse.gaussian)
rsq(igfit)
rsq(igfit,adj=TRUE)

rsq.partial(igfit)
# }

Run the code above in your browser using DataLab