gen.intercepts: Generate Baserate Statistics

Description Usage Arguments Value Author(s) See Also Examples

Description

Generates baserate statistics in statslist form for direct input into rem() in Butts's relevent R package.

Usage

1
gen.intercepts(evl, basecat=NULL, type=1, contr=TRUE)

Arguments

evl

An eventlist. Possibly passed from gen.evl()

basecat

A string indicating which event to treat as the baseline group. Default is NULL, which uses the first event in evl$event.key.

type

An integer indicating the location of the statistics in the statslist. 1 for global, 2 for local. Default is global.

contr

Logical. Should the routine use SAS-like contrasts to generate the statistics? Defaults to true (which is faster than the alternative).

Value

A list containing:

list

An i,j,k array consisting of the i'th event's j by k identity contrast matrix.

Author(s)

Christopher Steven Marcum

See Also

slbind,gen.id

Examples

1
2
3
4
5
6
7
8
9
rawevents<-sample(rep(c("ran","eat","stay","eat","ran","play"),5))
actors<-rep(c("Jim","Bill","Pete"),10)
eventlist<-gen.evl(cbind(rawevents,actors))
baserates<-gen.intercepts(eventlist)
baserates[[1]][[1]][1,,]

#Compare with:
baserates<-gen.intercepts(eventlist,contr=FALSE)
baserates[[1]][[1]][1,,]

informR documentation built on May 1, 2019, 9:22 p.m.