combination: Combining hypr objects by addition or interaction

+,hypr,hypr-methodR Documentation

Combining hypr objects by addition or interaction

Description

You can combine one or more hypr objects, i.e. combine their hypothesis to a single hypr object, by adding them with the + or \* operators.

Usage

## S4 method for signature 'hypr,hypr'
e1 + e2

## S4 method for signature 'hypr,hypr'
e1 * e2

## S4 method for signature 'hypr,hypr'
e1 & e2

## S4 method for signature 'hypr,hypr'
e1 / e2

Arguments

e1, e2

hypr objects to concatenate

Value

The combined hypr object

Functions

  • e1 * e2: Interaction of e1 and e2

  • e1 & e2: Interaction and main contrasts of e1 and e2

  • e1 / e2: Nesting levels of e2 within e1

Examples


(h1 <- hypr(a~i, b~i)) # a hypr object of two treatments

(h2 <- hypr(i~0)) # an intercept-only hypr object

hc <- h1 + h2

hc

interaction <- h1 & h2

interaction_and_main <- h1 * h2


hypr documentation built on Nov. 9, 2023, 5:06 p.m.