subsetData: Subset of the result table

Description Usage Arguments Value Examples

View source: R/subsetData.R

Description

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

Usage

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

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.

Value

The dataframe of different subset of the result table.

Examples

1
2
3
4
5
6
7
8
# 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))

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