M: Method to generate hypothesis matrices from formulas

View source: R/Lfx.R

MR Documentation

Method to generate hypothesis matrices from formulas

Description

Interprets a formula to generate the corresponding portion of a hypothesis matrix. See examples in Lfx. Creates an 'M' object with methods to generate coefficients to estimate interaction terms and comparisons of factor levels.

Usage

M(x, ...)

## S3 method for class 'formula'
M(form, ..., keep.intercept = FALSE)

## S3 method for class 'factor'
M(x, base = NULL, ...)

## S3 method for class 'M'
M(x, ...)

## Default S3 method:
M(x, ...)

## S3 method for class 'M'
e1 * e2

## S3 method for class 'factor'
x < y

## S3 method for class 'factor'
x > y

## S3 method for class 'factor'
x <= y

## S3 method for class 'factor'
x >= y

Arguments

...

other arguments

form

formula

keep.intercept

(default: FALSE) if TRUE generate a column for the intercept term

Methods (by class)

  • M(formula): formula method

  • M(factor): factor method

  • M(M): method for M object

  • M(default): default method

Methods (by generic)

  • * : multiplication of M objects

Functions

  • < : '<' method for factors

  • > : '>' method for factors

  • <= : '<=' method for factors

  • >= : '>=' method for factors

See Also

Lfx


gmonette/spida2 documentation built on Aug. 11, 2024, 7:52 p.m.