Learn R Programming

netSEM (version 0.5.1)

subsetData: Subset of the result table

Description

This function creat different Subset of the result table based on the cutoffs.

Usage

subsetData(x, cutoff = c(0.2, 0.5, 0.8))

Value

The dataframe of different subset of the result table.

Arguments

x

An object of class "netSEM", the returned list from netSEMm. Plotting uses the first element of this list (res.print) in which the first column of it is endogenous variable, second column is variable and other columns are corresponding best functional form, r-squared, adj-r-squared, P-value1, P-value2 and P-value3.

cutoff

A threshold value for adjusted R-squared. The maximum number of cutoff is 3.

Examples

Run this code
# Load acrylic data set
data(acrylic)
# Build a semi-gSEM model
ans <- netSEMm(acrylic)
# Subset dataset with different cutoff
res <- subsetData(ans,cutoff=c(0.2))
res <- subsetData(ans,cutoff=c(0.2,0.5))
res <- subsetData(ans,cutoff=c(0.2,0.5,0.8))

Run the code above in your browser using DataLab