axFormatTableDat: Get the (apa formatted) output of a linear (moderated)...

View source: R/axFormatTableDat.R

axFormatTableDatR Documentation

Get the (apa formatted) output of a linear (moderated) regression in a variable list

Description

Get the (apa formatted) output of a (moderated) regression in a variable list to be used in further computations or table arrangements.

Usage

axFormatTableDat(
  data,
  pred,
  crit,
  cov = NULL,
  mod = NULL,
  symMargSig = "+",
  symSig = "*",
  sorting = "",
  formatted = "apa"
)

Arguments

data

A data frame containing the numeric columns to be used in the regression.

pred

Character with the column name which should be used as predictors of the linear regression

crit

Character cointaining the column name of the criteria

cov

Character vector with the column names which should be used as covariates in the linear regression

mod

Character with the column name which sould be used as a moderator (pred * mod) in the linear regression

symMargSig

Symbol to be used as indicator of marginal significance in formatted (apa) output. Default is dagger

symSig

Symbol to be used as indicator of significance in formatted (apa) output. Default is *

sorting

Character vector containing the sequence of variables which should be used in the output

formatted

Should the variable list contain apa formatted output ("apa", e.g., rounded, no leading zero, stars and daggers of significance) or unformatted ("raw") output. Default is "apa".

Value

Returns a list with variables of the regression output, either apa formatted or raw to be used for further computations or table output.

Author(s)

Axel Zinkernagel zinkernagel@uni-landau.de

Examples

axFormatTableDat(axBoost::df1, pred = "IndMeasure", crit = "AutoBehav",
cov = c("DirMeasure"), mod = "mod", formatted = "apa")



axzinker/axBoost documentation built on July 4, 2024, 9:14 p.m.