f.corstar: Add asterisk(s) to significant correlations

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.

Usage

1
f.corstar(corr.obj, is.triangle = TRUE, p.val.1 = 0.05, p.val.2 = 0.01)

Arguments

corr.obj

is the output list object from the corr.test function in the Psych package

is.triangle

is whether the correlation is a symetric matrix (default) or a rectangular matrix in which one set of variables is correlated with a different set.

p.val.1

is the p-value desired to trigger a single astrisk (default = .05)

p.val.2

is the p-value desired to trigger a second astrisk added to the first default = .01. p.val.2 should be a smaller p val than p.val.1. set p.val.2 = FALSE if no second astrisk is desired

Author(s)

Adam Meade awmeade@ncsu.edu

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
require('psych')
 corrs.1 = corr.test(sat.act)
 f.corstar(corrs.1)
 f.corstar(corrs.1, p.val.1 = .01, p.val.2 = FALSE)
 corrs.2 = corr.test(sat.act[3:5],sat.act[6])
 f.corstar(corrs.2,is.triangle = FALSE)
 
## End(Not run)

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