Am 21.05.2022 um 01:08 schrieb Cottrell, Allin:
On Fri, May 20, 2022 at 3:17 PM Sven Schreiber
<svetosch(a)gmx.net> wrote:
>
> Am 18.05.2022 um 14:13 schrieb Sven Schreiber:
>> Hi,
>> I'm trying to use the regls() function
>
> ... there's one more: I think regls's internal nz_print function has a
> small bug in the line "len = max(strlen(S))". The problem is that S and
> by implication strlen(S) may be empty, and then max() throws an error.
> (I got an error from that in a corner case.)
> I would suggest to enclose the entire printing at the end of the
> function with a check like "if nelem(S)".
I'll look into it, but could you give me an idea of what the "corner
case" involved?
Well, I think it happens when no regressors are left in the model. This
could be because a certain single lambda is imposed, or simply because
the regressors are really bad predictors such that the best model
doesn't need them.
cheers
sven