compareIVs: Compares the effects of various independent variables on...

compareIVsR Documentation

Compares the effects of various independent variables on dependent variables

Description

Utility to estimate the unadjusted, covariate adjusted, and multivariate adjusted unique contributions of one or more IVs on one or more DVs

Usage

compareIVs(
  dv,
  type,
  iv,
  covariates = character(),
  data,
  multivariate = FALSE,
  ...
)

Arguments

dv

A character string or vector of the depentent variable(s)

type

A character string or vector indicating the type of dependent variable(s)

iv

A character string or vector giving the IV(s)

covariates

A character string or vector giving the covariate(s)

data

The data to be used for analysis

multivariate

A logical value whether to have models with all IVs simultaneously.

...

Additional arguments passed on to the internal function, .runIt.

Value

A list with all the model results.

Examples

test1 <- compareIVs(
  dv = c("mpg", "disp"),
  type = c("normal", "normal"),
  iv = c("hp", "qsec"),
  covariates = "am",
  data = mtcars, multivariate = TRUE)
test1$OverallSummary
rm(test1)

JWileymisc documentation built on Oct. 5, 2023, 5:06 p.m.