f.write.corrs: Formats in APA format and writes correlation matrices to an...

Description Usage Arguments Author(s) Examples

Description

Uses an output object from the Psych package and adds 1 or 2 askterisks (stars) to the correlation for APA table output. Returns object as dataframe. Writes correlational data for r, n, and pvalues to three consecutively named Excel sheets.

Usage

1
2
3
4
5
6
7
8
f.write.corrs(
  f.name = "output.xlsx",
  s.name,
  obj.corrs,
  print.p = TRUE,
  print.n = TRUE,
  ...
)

Arguments

f.name

is the file name to which to write the data. default = 'output.xlsx'

s.name

is the name of the Excel sheet(s) to which to write the data

obj.corrs

is the correlation object from the corr.test function in the Psych package

print.p

requests printing of p values. default = TRUE

print.n

requests printing of sample size (n). default = TRUE

...

parameters passed to the f.corstar function

Author(s)

Adam Meade awmeade@ncsu.edu

Examples

1
2
3
4
5
6
## Not run: 
corrs = corr.test(sat.act)
f.write.corrs(s.name='example',obj.corrs=corrs)
f.write.corrs(f.name='example.xlsx',s.name='example',obj.corrs=corrs,p.val.2=FALSE)

## End(Not run)

awmeade/psymetlab documentation built on Nov. 21, 2020, 11:39 p.m.