Skip to contents

savvySh 0.1.2

  • SR uses the MSE-optimal penalty mu** = sigma^2 / (u’beta)^2 of the revised paper. When u’beta = 0 the penalty is infinite and SR returns the OLS estimate. The estimate is now the same for every v > 0.
  • Sh is computed in closed form, C* = beta beta’ Sigma / (sigma^2 + beta’ Sigma beta), instead of by solving a Sylvester equation. The package no longer imports expm, and MASS moves to Suggests.
  • include_Sh now defaults to TRUE, so the “Multiplicative” model returns St, DSh and Sh. With the closed form, Sh costs no more than St and DSh. The warning about include_Sh is given only when it is set to TRUE explicitly for another model class.
  • LSh: t3 is beta’ M’M beta (it was beta’ M M beta), and sigma^2 is RSS / (n - p - 1), because centering the data uses one degree of freedom.
  • SRR: the last term of H(rho) has the fourth power of (1 - rho) lambda_k + rho v (it was the third), and rho* is found with tolerance sqrt(.Machine$double.eps).
  • GSR gives the same values as before, but a zero projection u_l’beta no longer produces NaN.
  • Rank-deficient x: Sigma_lambda now uses the penalty that the glmnet ridge fit actually applies (unpenalized intercept, standardized x and y), sigma^2 is RSS / (n - df) (it was squared), and cross-validation uses the fold assignments returned with foldid = TRUE.
  • The warning for ncol(x) >= nrow(x) now says the number of features is not less than the number of observations.