Learn R Programming

umx (version 1.4.0)

umx_APA_pval: umx_APA_pval

Description

round a p value so you get < .001 instead of .000000002 or 1.00E-09

Usage

umx_APA_pval(p, min = 0.001, digits = 3, addComparison = NA, rounding = NULL)

Arguments

p
The p-value to round
min
Values below min will be reported as "< min"
digits
Number of decimals to which to round (default = 3)
addComparison
Whether to add '=' '
rounding
deprecated - please replace 'rounding' with 'digits'

Value

- p-value formatted in APA style

See Also

- round

Other Reporting Functions: loadings.MxModel, mxSE, umxAPA, umx_aggregate, umx_print, umx_show, umx_time, umx

Examples

Run this code
umx_APA_pval(.052347)
umx_APA_pval(1.23E-3)
umx_APA_pval(1.23E-4)
umx_APA_pval(c(1.23E-3, .5))
umx_APA_pval(c(1.23E-3, .5), addComparison = TRUE)

Run the code above in your browser using DataLab