Learn R Programming

rsq (version 2.7)

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).

Author

Dabao Zhang, Department of Epidemiology and Biostatistics, University of California, Irvine

Details

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

See Also

rsq, rsq.partial, pcor, simglm.

Examples

Run this code
data(lifetime)
summary(lifetime)
head(lifetime)

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

Run the code above in your browser using DataLab