Description Usage Arguments Value Author(s) See Also Examples
Generates baserate statistics in statslist form for direct input into rem()
in Butts's relevent R package.
1 | gen.intercepts(evl, basecat=NULL, type=1, contr=TRUE)
|
evl |
An eventlist. Possibly passed from |
basecat |
A string indicating which event to treat as the baseline group. Default is NULL, which uses the first event in |
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). |
A list containing:
list |
An i,j,k array consisting of the i'th event's j by k identity contrast matrix. |
Christopher Steven Marcum
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,,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.