allStats {JATSdecoder} | R Documentation |
allStats
Description
Extracts statistical results within a text string and outputs a vector of sticked results, e.g.: c("t(12)=1.2, p>.05","r's(33)>.7, ps<.05"), that can be further processed with standardStats
. This function is implemented in get.stats
which returns the results of allStats
and standardStats
. Besides only plain textual input, get.stats
enables direct processing of different file formats (NISO-JATS coded XML, DOCX, HTML) without text preprocessing.
Usage
allStats(x)
Arguments
x |
A character string that may contain statistical results. |
Value
Vector with sticked results. Empty, if no result is detected.
Source
A minimal web application that extracts statistical results from single documents with get.stats
is hosted at: https://www.get-stats.app/
References
Böschen (2021). "Evaluation of JATSdecoder as an automated text extraction tool for statistical results in scientific reports.” Scientific Reports. doi: 10.1038/s41598-021-98782-3.
See Also
study.character
for extracting multiple study characteristics at once.
get.stats
for extracting statistical results from textual input and different file formats.
Examples
x<-c("The mean difference of scale A was significant (beta=12.9, t(18)=2.5, p<.05)",
"The ANOVA yielded significant results on factor A (F(2,18)=6, p<.05, eta(g)2<-.22).",
"The correlation of x and y was r=.37.")
allStats(x)