Learn R Programming

netSEM (version 0.5.1)

findrelation: Find relationship between any two variables

Description

Find relationship between any two variables.

Usage

findrelation(iVar, iResp, criterion = "adj.R2", modelNames, str = FALSE,
  cRes.all, cRes.best, cRes.print, x, nlsInits, nRes)

Value

a list of the following items:

  • "cRes.all": A dataframe of all results.

  • "cRes.best": A dataframe of best results.

  • "cRes.print": A dataframe of results to print

Arguments

iVar

The first parameter.

iResp

The second parameter.

criterion

What model fit parameter is used for ranking? (Default: adj.R2)

modelNames

A vector of model names chosen from "SL", "Quad", "SQuad", "Exp", "Log", "nls","CP"

str

TRUE/FALSE Is this a 'strength' type model fitting? (whether to use ^2 and sqrt functions)

cRes.all

A dataframe of all results, passed in by the netSEMm function

cRes.best

A dataframe of best results, passed in by the netSEMm function

cRes.print

A dataframe of results to print, passed in by the netSEMm function

x

A dataframe of data values, passed in by the netSEMm function

nlsInits

A vector of nls initialization coefficients, passed in by the netSEMm function

nRes

number of cells in the print variable, value passed in by the netSEmm function