Make coefficient matrix containing estimates, standard errors, \(100(1 - \alpha)\)% CIs, Z statistics, and p-values given an input vector of parameter estimates and their standard errors.

make_coef_mat(
  theta_hat,
  V_theta_hat,
  trans,
  alpha = 0.05,
  SEs = TRUE,
  CIs = TRUE,
  tests = TRUE
)

Arguments

theta_hat

A named numeric vector of parameter estimates.

V_theta_hat

A numeric matrix containing the covariance matrix of the parameter estimates in theta_hat. If the matrix has row or column names, a warning will be given if they do not match those in theta_hat.

trans

A function accepting a single argument (e.g., exp) that is used to transform parameter estimates and confidence intervals. All tests and standard errors are still on the untransformed scale.

alpha

The alpha level for the confidence intervals; default 0.05.

SEs

TRUE (default) if standard errors should be reported.

CIs

TRUE (default) if \(100(1 - \alpha)\)% CIs should be reported.

tests

TRUE (default) if Wald test statistics and p-values based on the normal distribution should be reported.

Value

A matrix with row names given by the names of theta_hat containing the requested columns.