commonalityCoefficients {yhat}R Documentation

Commonality Coefficents

Description

Commonality Coefficients returns a list of two tables. The first table CC contains the list of commonality coefficients and the percent variance for each effect. The second CCTotByVar totals the unique and common effects for each independent variable.

Usage

  commonalityCoefficients(dataMatrix, dv, ivlist, imat=FALSE)

Arguments

dataMatrix Dataset containing the dependent and independent variables
dv The dependent variable named in the dataset
ivlist List of independent variables named in the dataset
imat Echo flag, default to FALSE

Details

When echo flag is true, transitional matrices during commonality coefficient calculation are sent to output window. Default for this option is false. When set to true, the intermediate matrices for each commonality coefficient and regression combinations are printed in the output window.

Value

CC Matrix containing commonality coefficients and percentage of variance for each effect.
CCTotalByVar Table of unique and common effects for each independent variable.

Author(s)

Kim Nimon <kim.nimon@gmail.com>

See Also

canonCommonality genList odd setBits

Examples

  ## Predict miles per gallon based on vehicle weight, type of 
  ## carborator, & number of engine cylinders
     CCdata=commonalityCoefficients(mtcars,"mpg",list("wt","carb","cyl"))
     print(CCdata)

  ## Predict paragraph comprehension based on four verbal
  ## tests: general info, sentence comprehension, word
  ## classification, & word type 
  ## Uses HS dataset in MBESS 
     data(HS.data)
     attach(HS.data)
  ## Commonality Coefficient Analysis
     CCdata=commonalityCoefficients(HS.data,"paragrap",list("general",
       "sentence","wordc","wordm"))
     print(CCdata)

[Package yhat version 1.0-3 Index]