Learn R Programming

sasLM (version 0.6.0)

T3test: Test Type III SS using error term other than MSE

Description

Hypothesis test of Type III SS using an error term other than MSE. This corresponds to SAS PROC GLM's RANDOM /TEST clause.

Usage

T3test(Formula, Data, Error="", eps=1e-8)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

Error

an error term. Term name should be exactly same one listed the ANOVA output.

eps

Less than this value is considered as zero.

Value

Returns one or more ANOVA table(s) of type III SS.

Details

It tests a factor of type III SS using some other term as an error term. Here the error term should not be MSE.

Examples

Run this code
# NOT RUN {
  T3test(log(CMAX) ~ SEQ/SUBJ + PRD + TRT, BEdata, "SEQ:SUBJ")
# }

Run the code above in your browser using DataLab