joint.effect {mlma}R Documentation

Find the joint effect of a list of mediators.

Description

This function provides the inference information (estimation, standard deviation, etc.) for the joint and relative effect of a list of mediators.

Usage

joint.effect(object,var.list,digits=4,...,alpha=0.05)
## S3 method for class 'joint.effect'
print(x,...)

Arguments

object

an "boot.mlma" object.

x

an "joint.effect" object from the joint.effect function.

var.list

a list of mediators whose joint effects are of interest.

...

arguments to be passed to methods.

alpha

the significance level at which to draw the confidence bands.

digits

number of digits to be printed.

Author(s)

Qingzhao Yu (qyu@lsuhsc.edu), Bin Li (bli@lsu.edu).

Examples

data(sim.111)
data(sim.211)
data3<-data.org(x=cbind(ifelse(sim.211$x>1.9,1,0),sim.111$x), m=sim.211$m, 
                f20ky=list(2,c("x","x^3")), f01km1=list(matrix(c(2,1),1),"sqrt(x)+3"), 
                f01km2=list(matrix(c(1,1),1),c("x^1.2","x^2.3")), level=sim.211$level)
temp3.boot<-boot.mlma(y=sim.211$y, data1=data3,boot=2) 
joint.effect(temp3.boot, var.list=c("m.4"))

[Package mlma version 6.3-1 Index]