Zero-out entries of non-focal entries of variance-covariance matrix.
zero_vcov.Rd
Transforms entries of variance-covariance of the coefficients corresponding to the non-focal variables to zero.
Arguments
- mod
fitted model object or a full variance-covariance matrix with terms appearing the same way they appear in the coefficients.
- focal_vars
a character vector specifying the variable(s) appearing on the right side of the formula of the fitted model. The entries of this variable with be non-zero.
- complete
logical indicating if the full variance-covariance matrix should be returned.