Learn R Programming

sasLM (version 0.6.0)

SLICE: F Test with Slice

Description

Do F test with a given slice term.

Usage

SLICE(Formula, Data, mTerm, sTerm)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

mTerm

a factor name (not interaction) to calculate sum of square and do F test with least square means

sTerm

a factor name to be used for slice

Value

Returns sum of square and its F value and p-value.

Df

degree of freedom

Sum Sq

sum of square for the set of contrasts

Mean Sq

mean square

F value

F value for the F distribution

Pr(>F)

proability of larger than F value

Details

It performs F test with a given slice term. It is similar to the SLICE option SAS PROC GLM.

Examples

Run this code
# NOT RUN {
  SLICE(uptake ~ Type*Treatment, CO2, "Type", "Treatment") 
  SLICE(uptake ~ Type*Treatment, CO2, "Treatment", "Type") 
# }

Run the code above in your browser using DataLab