coef_test: Test coefficients of a model

Description Usage Arguments Value Examples

View source: R/coef_test.R

Description

Conduct a t-test or z-test for coefficients of a model.

Usage

1
coef_test(x, par1, par2, distribution = "pt")

Arguments

x

A model.

par1

Numeric or character. Name or position of the first parameter.

par2

Numeric or character. Name or position of the second parameter.

distribution

Character. Which distribution to use. Currently, can be one of c("pt", "pnorm"), for a t-test or z-test, respectively. Defaults to "pt".

Value

Named vector.

Examples

1
2
3
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
res <- rma(yi, vi, mods = ~alloc-1, data=dat, method="REML")
coef_test(res, 1, 2)

metaforest documentation built on Jan. 8, 2020, 9:06 a.m.