Last data update: 2014.03.03

R: Test Linear Hypothesis for "meta.nsue" Objects
linearHypothesis.meta.nsueR Documentation

Test Linear Hypothesis for “meta.nsue” Objects

Description

Function for testing a linear hypothesis. Along with metalm, it can be used to carry out meta-regression, meta-comparisons, analyses of variance and covariance, and etcetera.

Usage

## S3 method for class 'meta.nsue'
linearHypothesis(x, hypotheses, ...)

Arguments

x

an object of class "meta.nsue".

hypotheses

a list of hypotheses, or NULL to test the coefficients of the model.

...

other arguments (currently ignored).

Details

Each hypothesis must be a matrix (or vector) giving linear combinations of coefficients by rows.

Value

linearHypothesis.meta.nsue returns an object of class "meta.nsue".

The functions print and summary may be used to print the details or a summary of the results. The generic accessor functions coefficients, fitted.values and residuals extract various useful features of the value returned by linearHypothesis.meta.nsue.

Author(s)

Joaquim Radua

References

Radua, J., Schmidt, A., Borgwardt, S., Heinz, A., Schlagenhauf, F., McGuire, P., Fusar-Poli, P. (2015) Ventral striatal activation during reward processing in psychosis. A neurofunctional meta-analysis. JAMA Psychiatry, 72, 1243–51.

See Also

metalm for fitting meta-analytic models.

meta for conducting a meta-analysis.

Examples

t <- c(3.4, NA, NA, NA, NA, 2.8, 2.1, 3.1, 2.0, 3.4)
n <- c(40, 20, 22, 24, 18, 30, 25, 30, 16, 22)
m <- meta(smc_from_t(t, n))
mean.age <- rnorm(10, 30, 5)
m <- metalm(m, ~ mean.age)
linearHypothesis(m, list(age_10years = c(0, 10)))

Results