Learn R Programming

sasLM (version 0.3.0)

est: Estimate Linear Contrast

Description

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

Usage

est(L, rx)

Arguments

L

a matrix of linear contrast rows to be tested

rx

a result of lfit function

Value

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

Estimate

point estimate of the input linear constrast

Std. Error

standard error of the point estimate

t value

value for t distribution

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