path: Extract Path Model Equation

Description Usage Arguments Details Value See Also Examples

View source: R/path.R

Description

Extract and display an equation of a pairwise path between two variables.

Usage

1
path(x, from, to, round = 3)

Arguments

x

object of class "netSEM", which is the return value of function netSEMm.

from

character string. Name of the predictor.

to

character string. Name of the endogenous variable.

round

a positive integer. The coefficients are rounded to this decimal place.

Details

Extract the "best" model between any two variables. The model name and the model equation are printed on screen. The model coefficients, as well as the model R object are also returned.

Value

a list of the following items:

See Also

netSEMm

Examples

1
2
3
4
5
6
7
8
9
##' ## Load the sample acrylic data set
data(acrylic)

## Run netSEM principle three
ans <- netSEMm(acrylic)

## Extract relations between IrradTot and IAD2
cf <- path(ans,from ="IAD2",to="IrradTot")
print(cf)

netSEM documentation built on May 2, 2019, 6:32 a.m.