apa.2way.table: Creates a table of means and standard deviations for a 2-way...

Description Usage Arguments Value Examples

View source: R/apaANOVATable2way.R

Description

Creates a table of means and standard deviations for a 2-way ANOVA design in APA style

Usage

1
2
3
apa.2way.table(iv1, iv2, dv, data, filename = NA, table.number = NA,
  show.conf.interval = FALSE, show.marginal.means = FALSE,
  landscape = TRUE)

Arguments

iv1

Name of independent variable 1 column in data frame

iv2

Name of independent variable 2 column in data frame

dv

Name of dependent variable column in data frame

data

Project data frame name

filename

(optional) Output filename document filename (must end in .rtf or .doc only)

table.number

Integer to use in table number output line

show.conf.interval

(TRUE/FALSE) Display confidence intervals in table. Negates show.marginal.means = TRUE.

show.marginal.means

(TRUE/FALSE) Show marginal means in output. Only used if show.conf.interval = FALSE.

landscape

(TRUE/FALSE) Make RTF file landscape

Value

APA table object

Examples

1
2
3
4
5
# Example 2: 2-way from Fidler & Thompson (2001)
apa.2way.table(iv1=a,iv2=b,dv=dv,data=fidler_thompson,landscape=TRUE, filename="ex2_desc_table.doc")

# Example 3: 2-way from Field et al. (2012) Discovery Statistics Using R
apa.2way.table(iv1=gender,iv2=alcohol,dv=attractiveness,data=goggles,filename="ex3_desc_table.doc")

dstanley4/apaTables documentation built on July 16, 2018, 4:08 p.m.