Learn R Programming

uncertainUCDP (version 0.7.6)

rubin_b_and_ses: Pool coefficients and standard errors from multiple `coeftest` objects

Description

Internal helper that takes a list of `lmtest::coeftest()` matrices and returns a pooled `coeftest`-like matrix using Rubin's rules.

Usage

rubin_b_and_ses(coeftests)

Value

A `coeftest`-like numeric matrix with pooled estimates (col 1), pooled standard errors (col 2), pooled t-statistics (col 3), and two-sided p-values (col 4). Row/column names and attributes are inherited from the first element of `coeftests`.

Arguments

coeftests

A list of objects returned by `lmtest::coeftest()`. Each element must have matching coefficient rows/columns, where column 1 is the estimate and column 2 is the standard error.