getCatSlopeDf: Make data summarizing regression slopes and intercepts

Description Usage Arguments Examples

View source: R/condPlotCat.R

Description

Make data summarizing regression slopes and intercepts

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
getCatSlopeDf(
  labels = NULL,
  data,
  yvar = "Y",
  total = FALSE,
  addvars = TRUE,
  add.label = FALSE,
  maxylev = 6,
  mode = 1,
  rangemode = 2
)

Arguments

labels

Named list of variables

data

A data.frame

yvar

Label of the dependent variable. Either "Y"(default) or "M".

total

logical. If true, model include mediator variable.

addvars

logical. Whether or not add categorical variables to the data

add.label

logical

maxylev

maximal unique length of categorical variable

mode

Numeric. One of 1:4. 1= simple indicator coding, 2= sequential coding, 3= Helmert coding, 4= effect coding

rangemode

rangemode. 1 or 2.

Examples

1
2
3
labels=list(X="protest",W="sexism",M="respappr",Y="liking")
getCatSlopeDf(labels=labels,yvar="M",data=protest,mode=3)
getCatSlopeDf(labels=labels,yvar="M",data=protest,mode=1)

processR documentation built on Jan. 7, 2021, 9:06 a.m.