On Mon, Oct 23, 2023 at 2:39 PM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
Hi,
this is what I got when I tried to run a totally non-serious arbitrary
specification with regls, where (as it turned out) many (all?) variables
had lots of missings or even only a single valid value:
unbestimmte 'if'-Bedingung
> if sy == 0
*** Fehler in Funktion s_standardize, Zeile 3
> if sy == 0
von Funktion regls aufgerufen
*** Fehler in Funktion regls, Zeile 51
> matrix Y = s_standardize({depvar}, &my, &sy)
Not a big deal, but I guess nevertheless some more internal validity or
soundness checks are needed.
Thanks for the report. That error indicates that sy, the return value
from sdc() is NA, which in turn means that we had fewer than 2 valid
observations of depvar. OK, in that case we'll call funcerr with a
message of "Insufficient valid observations".
Allin