## Predict miles per gallon based on vehicle weight, type of
## carborator, & number of engine cylinders
commonalityCoefficients(mtcars,"mpg",list("wt","carb","cyl"))
## Predict paragraph comprehension based on four verbal
## tests: general info, sentence comprehension, word
## classification, & word type
## Use HS dataset in MBESS
if (require ("MBESS")){
data(HS)
## Commonality Coefficient Analysis
commonalityCoefficients(HS,"t6_paragraph_comprehension",list("t5_general_information",
"t7_sentence","t8_word_classification","t9_word_meaning"))
}
Run the code above in your browser using DataLab