-
Notifications
You must be signed in to change notification settings - Fork 57
/
Hypothesis.Rd
28 lines (27 loc) · 1.22 KB
/
Hypothesis.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Hypothesis.R
\name{Hypothesis}
\alias{Hypothesis}
\alias{CoefficientHypothesis}
\title{Describe a linear model hypothesis to be tested}
\usage{
Hypothesis(hypothesis, terms)
}
\arguments{
\item{hypothesis}{a character vector specifying a hypothesis, following makeContrasts, or a character vector naming coefficients to be dropped.}
\item{terms}{an optional character vector giving the terms (column names from the \code{model.matrix}) out of which the contrasts will be contrasted. If missing then most functions will attempt to fill this in for you at run time.}
}
\value{
a Hypothesis with a "transformed" component
}
\description{
A \code{Hypothesis} can be any linear combination of coefficients, compared to zero. Specify it as a character vector that can be parsed to yield the desired equalities ala \code{makeContrasts}.
A \code{CoefficientHypothesis} is a hypothesis for which terms are singly or jointly tested to be zero (generally the case in a t-test or F-test), by dropping coefficients from the model.
}
\examples{
h <- Hypothesis('Stim.ConditionUnstim', c('(Intercept)', 'Stim.ConditionUnstim'))
h@contrastMatrix
}
\seealso{
zlm waldTest lrTest
}