Learn R Programming

sasLM (version 0.5.0)

PDIFF: Pairwise Difference by Least Significant Difference

Description

Estimates pairwise difference by least signicicant difference.

Usage

PDIFF(Formula, Data, Term, conf.level=0.95)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

Term

a factor name to be estimated

conf.level

confidence level of confidence interval

Value

Returns a table of expectations, t values and p-values.

Estimate

point estimate of the input linear constrast

Lower CL

lower confidence limit

Upper CL

upper confidence limit

Std. Error

standard error of the point estimate

t value

value for t distribution

Df

degree of freedom

Pr(>|t|

probability of larger than absolute t value from t distribution with residual's degree of freedom

Details

This usually shows the shortest interval. It corresponds to SAS PROC GLM PDIFF. Interaction of three variables is not supported yet.

Examples

Run this code
# NOT RUN {
PDIFF(uptake ~ Type*Treatment + as.factor(conc), CO2, "as.factor(conc)")
# }

Run the code above in your browser using DataLab