findRecursiveSet: Group variables regarding the position in mediation chain

Description Usage Arguments Value Author(s) See Also Examples

View source: R/find.R

Description

In mediation analysis, variables affects other variables as a chain. This function will group variables regarding the chain of mediation analysis.

Usage

1

Arguments

beta

The regression coefficient in path analysis.

Value

The list of set of variables in the mediation chain. The variables in position 1 will be the independent variables. The variables in the last variables will be the end of the chain.

Author(s)

Sunthud Pornprasertmanit (psunthud@gmail.com)

See Also

Examples

1
2
3
4
5
6
7
path <- matrix(0, 9, 9)
path[4, 1] <- path[7, 4] <- NA
path[5, 2] <- path[8, 5] <- NA
path[6, 3] <- path[9, 6] <- NA
path[5, 1] <- path[8, 4] <- NA
path[6, 2] <- path[9, 5] <- NA
findRecursiveSet(path)

simsem documentation built on May 29, 2017, 10:40 a.m.

Search within the simsem package
Search all R packages, documentation and source code