View source: R/lm_betaselect_methods.R
summary.glm_betaselect | R Documentation |
The summary
method
for glm_betaselect
-class objects.
## S3 method for class 'glm_betaselect'
summary(
object,
dispersion = NULL,
correlation = FALSE,
symbolic.cor = FALSE,
trace = FALSE,
test = c("LRT", "Rao"),
se_method = c("boot", "bootstrap", "z", "glm", "default"),
ci = TRUE,
level = 0.95,
boot_type = c("perc", "bc"),
boot_pvalue_type = c("asymmetric", "norm"),
type = c("beta", "standardized", "raw", "unstandardized"),
print_raw = c("none", "before_ci", "after_ci"),
transform_b = NULL,
transform_b_name = NULL,
...
)
## S3 method for class 'summary.glm_betaselect'
print(
x,
est_digits = 3,
symbolic.cor = x$symbolic.cor,
signif.stars = getOption("show.signif.stars"),
show.residuals = FALSE,
z_digits = 3,
pvalue_less_than = 0.001,
...
)
object |
The output of
|
dispersion |
The dispersion
parameter. If |
correlation |
If |
symbolic.cor |
If |
trace |
Logical. Whether
profiling will be traced when forming
the confidence interval if
|
test |
The test used for
|
se_method |
The method used to
compute the standard errors and
confidence intervals (if requested).
If bootstrapping was
requested when calling
|
ci |
Logical. Whether
confidence intervals are computed.
Default is |
level |
The level of confidence, default is .95, returning the 95% confidence interval. |
boot_type |
The type of
bootstrap confidence intervals,
if requested.
Currently, it supports |
boot_pvalue_type |
The type
of p-values if |
type |
String. If
|
print_raw |
Control whether
the estimates before selected
standardization are printed when
|
transform_b |
The function
to be used to transform the
confidence limits. For example,
if set to |
transform_b_name |
If
|
... |
Additional arguments passed to other methods. |
x |
The output of
|
est_digits |
The number of
digits after the decimal to be
displayed for the coefficient
estimates, their standard errors, and
confidence intervals (if present).
Note that the values will be rounded
to this number of digits before
printing. If all digits at this
position are zero for all values, the
values may be displayed with fewer
digits. Note that the coefficient
table is printed by
|
signif.stars |
Whether "stars"
(asterisks) are printed to denote
the level of significance achieved
for each coefficient. Default is
|
show.residuals |
If |
z_digits |
The number of digits
after the decimal to be displayed for
the z or similar statistic (in the
column |
pvalue_less_than |
If a
p-value is less than this value, it
will be displayed with |
By default, it returns a
summary.glm_betaselect
-class object
for the results with selected variables
standardized. By setting type
to
"raw"
or "unstandardized"
, it
returns the summary for the results
before standardization.
The print
method of
summary.glm_betaselect
-class objects
is adapted from
stdmod::print.summary.std_selected()
.
It returns an object of class
summary.glm_betaselect
, which is
similar to the output of
stats::summary.glm()
, with additional
information on the standardization
and bootstrapping, if requested.
The print
-method of
summary.glm_betaselect
is called
for its side effect. The object x
is returned invisibly.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
Asparouhov, A., & Muthén, B. (2021). Bootstrap p-value computation. Retrieved from https://www.statmodel.com/download/FAQ-Bootstrap%20-%20Pvalue.pdf
glm_betaselect()
data_test_mod_cat$p <- scale(data_test_mod_cat$dv)[, 1]
data_test_mod_cat$p <- ifelse(data_test_mod_cat$p > 0,
yes = 1,
no = 0)
# bootstrap should be set to 2000 or 5000 in real studies
logistic_beta_x <- glm_betaselect(p ~ iv*mod + cov1 + cat1,
data = data_test_mod_cat,
family = binomial,
to_standardize = "iv",
do_boot = TRUE,
bootstrap = 100,
iseed = 1234)
summary(logistic_beta_x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.