parmsummary_extend: Includes Confidence Interval in Parameter Summary Table

View source: R/parmsummary_extend.R

parmsummary_extendR Documentation

Includes Confidence Interval in Parameter Summary Table

Description

Includes confidence interval in parameter summary table.

Usage

parmsummary_extend(dfr, level=.95, est_label="est", se_label="se",
      df_label="df")

Arguments

dfr

Data frame containing parameter summary

level

Significance level

est_label

Label for parameter estimate

se_label

Label for standard error

df_label

Label for degrees of freedom

Value

Extended parameter summary table

See Also

stats::confint

Examples

#############################################################################
## EXAMPLE 1: Toy example parameter summary table
#############################################################################

dfr <- data.frame( "parm"=c("b0", "b1" ), "est"=c(0.1, 1.3 ),
                "se"=c(.21, .32) )
print( sirt::parmsummary_extend(dfr), digits=4 )
  ##    parm est   se      t         p lower95 upper95
  ##  1   b0 0.1 0.21 0.4762 6.339e-01 -0.3116  0.5116
  ##  2   b1 1.3 0.32 4.0625 4.855e-05  0.6728  1.9272

sirt documentation built on May 29, 2024, 8:43 a.m.