Description Usage Arguments Details Value Functions See Also Examples
View source: R/generic_functions.R
effect_null
returns a coefficient matrix to be parsed to powersim
by default
to specify a null effect.
1 2 3 4  ## S3 method for class 'manyglm'
effect_null(object, term)
effect_null(object, term)

object 
objects of class 
term 
Name of predictor of interest in quotes. 
effect_null
produces a coefficient matrix with a null effect that is specified by setting the parameter
estimates of a predictor of interest term
to 0. This function is used by default in powersim
.
Note that intercept values are parameterised as in effect_alt
.
A coefficient matrix with the null effect.
effect_null
: Specify null effects for multivariate abundance data
1 2 3 4 5 6 7 8  library(mvabund)
data(spider)
spiddat = mvabund(spider$abund)
X = data.frame(spider$x)
# Find null effect size for continuous predictor
spid.glm = manyglm(spiddat~soil.dry, family="negative.binomial", data=X)
coeffs0 = effect_null(spid.glm, term="soil.dry")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.