evrot: Rule of Thumb calculation for equal variances.

View source: R/evrot.R

evrotR Documentation

Rule of Thumb calculation for equal variances.

Description

evrot calculates the variance of your response (or dependent) variable for each level of your treatment (or independent) variable, and then calculates the ratio of the maximum variance to minimum variance. A rule of thumb is that if this ratio exceeds three, the assumption of constant variance may be violated.

Usage

evrot(resp, trt)

Arguments

resp

The dependent variable or response.

trt

The treatment or independent variable. Must be a factor.

Value

The ratio of maximum variance to the minimum variance of resp by trt.

Examples

g <- gl(n = 4,k = 10)
d <- rnorm(4*10, mean = rep(1:4,each=10), sd=1)
evrot(resp = d, trt = g)

with(balloon, evrot(TIME, COLOR))

clayford/dvdata documentation built on June 11, 2025, 8:43 a.m.