path | R Documentation |

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

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

`x` |
object of class "netSEM", which is the return value of function |

`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. |

Extract the "best" model from principle 1 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.

a list of the following items:

"model": the best fitted model.

"model.print": a character string of the model equation.

netSEMp1

```
## Not run:
## Load the sample acrylic data set
data(acrylic)
# Run netSEM principle one
ans <- netSEMp1(acrylic)
# Extract relations between IrradTot and IAD2
cf <- path(ans, from = "IrradTot", to = "IAD2")
print(cf)
## End(Not run)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.