summarize {statlingua} | R Documentation |
Summarize statistical output
Description
Generate text-based summaries of statistical output that can be embedded into prompts for querying Large Language Models (LLMs). Intended primarily for internal use.
Usage
summarize(object, ...)
## Default S3 method:
summarize(object, ...)
## S3 method for class 'htest'
summarize(object, ...)
## S3 method for class 'lm'
summarize(object, ...)
## S3 method for class 'glm'
summarize(object, ...)
## S3 method for class 'polr'
summarize(object, ...)
## S3 method for class 'lme'
summarize(object, ...)
## S3 method for class 'lmerMod'
summarize(object, ...)
## S3 method for class 'glmerMod'
summarize(object, ...)
## S3 method for class 'gam'
summarize(object, ...)
## S3 method for class 'survreg'
summarize(object, ...)
## S3 method for class 'coxph'
summarize(object, ...)
## S3 method for class 'rpart'
summarize(object, ...)
Arguments
object |
An object for which a summary is desired (e.g., a glm object). |
... |
Additional optional arguments. (Currently ignored.) |
Value
A character string summarizing the statistical output.
See Also
Examples
tt <- t.test(1:10, y = c(7:20))
summarize(tt) # prints output as a character string
cat(summarize(tt)) # more useful for reading
[Package statlingua version 0.1.0 Index]