Closed gaow closed 3 years ago
When running fit2 <- susie(X,y,L = 2,s_init = fit)
, I recommend producing an error since the behaviour is not well-defined.
For background, my aim is to initialize using a previous fit, but reduce L
. Perhaps a separate interface would be needed for this, e.g., susie_prune_single_effects
.
I should also add that susie doesn't complain when the rows of s_init$alpha
aren't valid probability tables.
Currently using
s_init
, the number of effect does not change for the second fit:Not sure if it is a desirable behavior. I think when
L
differs between fits, then they are not the same model anyways. In that argument perhaps current behavior is justifiable. One can in part bypass this problem usingsusie_init_coef
but it is not exactly the same as initializing it with a previous fit.