discord_regression: Discord Regression

Description Usage Arguments Value

View source: R/discord_regression.R

Description

Run discord analysis on discord data.

Usage

1
2
3
discord_regression(df, outcome, predictors, sep = "_", mean = "mean",
  diff = "diff", doubleentered = F, id = NULL, format_data = F,
  scale = TRUE, ...)

Arguments

df

Dataframe with all variables in it.

outcome

Name of outcome variable.

predictors

list of predictors to be used (names will be expanded, expanded versions should exist in df unless format_data=T).

sep

The character in df that separates root outcome and predictors from mean and diff labels

mean

The string in df that designates the mean variable derived from outcome and predictor variables

diff

The string in df that designates the diff variable derived from outcome and predictor variables

doubleentered

Describes whether data are double entered. Default is FALSE. Only used if format_data=T.

id

id variable (optional). Only used if format_data=T.

format_data

If TRUE, runs discord_data function.

scale

If TRUE, rescale all variables at the individual level to have a mean of 0 and a SD of 1. Only used if format_data=T.

...

further arguments passed to or from other methods

Value

Returns lm of the formula: outcome ~ predictors


discord documentation built on May 29, 2017, 9:06 a.m.