Learn R Programming

netSEM (version 0.5.1)

pathwayPredict: Summary of predicted and observed response values along a pathway

Description

Predict response variable values along a pathway

Usage

pathwayPredict(x, path, newdata = NULL)

Value

An object of class pathway, which is a list of the following items:

  • "pathway": A string form that shows the pathway.

  • "RMSE": A value of the root mean squared error.

  • "Resp": A matrix. The first column is the observed response values and the second is the predicted response values.

Arguments

x

An object of class "netSEM", the returned list from netSEMm.

path

A string form for a pathway, the default output format from pathwayRMSE.

newdata

A data frame of the stress variable. The default is NULL.

See Also

pathwayRMSE, netSEMm

Examples

Run this code
# Load the sample acrylic data set
data(acrylic)
ans <- netSEMm(acrylic)
paths <- pathwayRMSE(ans,maxlen=3)
response <- pathwayPredict(ans, paths[10,2])
response

Run the code above in your browser using DataLab