Learn R Programming

sasLM (version 0.5.0)

est: Estimate Linear Contrast

Description

Estimates Linear Contrast(s) with a given GLM result.

Usage

est(L, rx, conf.level=0.95)

Arguments

L

a matrix of linear contrast rows to be tested

rx

a result of lfit function

conf.level

confidence level of confidence limit

Value

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

It tests rows of linear contrast. It corresponds to SAS PROC GLM ESTIMATE.

Examples

Run this code
# NOT RUN {
  x = ModelMatrix(uptake ~ Type, CO2)
  y = model.frame(uptake ~ Type, CO2)[,1]
  rx = lfit(x, y)
  est(t(c(0, -1, 1)), rx) # Quevec - Mississippi 
  t.test(uptake ~ Type, CO2) # compare with the above
# }

Run the code above in your browser using DataLab