Description Usage Arguments Author(s) Examples
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.
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,
...
)
|
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 |
Adam Meade awmeade@ncsu.edu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.