The P-Value of a Coefficient as Text
text_coef_p.Rd
Extracts the p-value of a coefficient from an object and returns it as a text string.
Usage
text_coef_p(x, ...)
# S3 method for default
text_coef_p(
x,
param = NULL,
digits = getOption("out2text_coef_p_digits", 3),
format = getOption("out2text_coef_p_format", "f"),
...
)
# S3 method for lm
text_coef_p(
x,
param = NULL,
digits = getOption("out2text_coef_p_digits", 3),
format = getOption("out2text_coef_p_format", "f"),
...
)
# S3 method for glm
text_coef_p(
x,
param = NULL,
digits = getOption("out2text_coef_p_digits", 3),
format = getOption("out2text_coef_p_format", "f"),
...
)
# S3 method for lavaan
text_coef_p(
x,
param = NULL,
digits = getOption("out2text_coef_p_digits", 3),
format = getOption("out2text_coef_p_format", "f"),
standardized = FALSE,
group = 1L,
...
)
Arguments
- x
A supported object with coefficients in the results.
- ...
Optional arguments. Ignored for now.
- param
The name of the term or parameter for which the coefficients will be returned.
- digits
The number of decimal places to keep. To be passed to
formatC()
.- format
The format string used in
formatC()
. Default is"f"
.- standardized
Logical. Whether the estimate in the standardized solution is to be returned. Default is
FALSE
.- group
For an
lavaan
-class object, the group from which the estimate is to be returned. Default is 1.
Author
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448