m_step_regression {probe}R Documentation

Function for fitting the initial part of the M-step

Description

A wrapper function providing the quantities related to the M-step for α0\alpha_0 and σ2\sigma^2.

Usage

m_step_regression(Y, W, W2, Z = NULL, a = -3/2, Int = TRUE)

Arguments

Y

A matrix containing the outcome Y

W

Quantity E(W0)E(W_0) as outlined in citation, output from W_update_fun

W2

Quantity E(W02)E(W^2_0) as outlined in citation, output from W_update_fun

Z

A matrix or dataframe of other predictors to account for

a

(optional) parameter for changing the hyperparameter aa (default, a=3/2a=-3/2 uses n2n-2 as denominator for MAP of σ2\sigma^2)

Int

(optional) Logical - should an intercept be used?

Value

A list including

coef the MAP estimates of the α0\alpha_0 parameters sigma2_est the MAP estimate of σ2\sigma^2 VCV posterior variance covariance matrix of α0\alpha_0, res_data dataframe containing MAP estimates, posterior variances, t-test statistics and associated p-values for α0\alpha_0

References

McLain, A. C., Zgodic, A., & Bondell, H. (2022). Sparse high-dimensional linear regression with a partitioned empirical Bayes ECM algorithm. arXiv preprint arXiv:2209.08139.


[Package probe version 1.1 Index]