[bug #68474] (stat) The third output of glmfit triggers a number of errors.

chad <[email protected]> Fri, 26 Jun 2026 06:02:25 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============4540363374430411646==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============4540363374430411646==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-424238335-1782468145=:907908"
Content-Disposition: inline

--8323329-424238335-1782468145=:907908
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Follow-up Comment #1, bug #68474 (group octave):=0A=0AThis is because =0ALi=
ne 419: stats.beta =3D bb; =E2=80=94 bb is undefined; it should be b.=0A=0A=
Line 480: stats.p =3D 2 * tcdf (-abs (stats.t), dfe); =E2=80=94 dfe is unde=
fined; it=0Ashould be stats.dfe for the stats struct.=0A=0ALine 498: stats.=
residd(! xymissing) =3D sign (y - mu) .* sqrt (max (0, divn));=0A=E2=80=94 =
divn is undefined; the variable appearing in the code is devn. =0A=0AAfter =
making these fixes, it runs. I have submitted a pull request. However, I=0A=
noticed that some variables in the resulting stats struct have incorrect=0A=
computed values compared with MATLAB, which will require further modificati=
ons=0Aby the maintainers.=0A=0A=0A    _____________________________________=
__________________=0A=0AReply to this item at:=0A=0A  <https://savannah.gnu=
.org/bugs/?68474>=0A=0A_______________________________________________=0AMe=
ssage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-424238335-1782468145=:907908
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaj5OMQAKCRCqLAuaBUf3
TjzAAQCySqZMOljhtdQds9Bt51NWhYCmU9bsMKDqKVmEVRPMXAD9Ec/gWe6u+YQ3
BT+vBA/2iI7cZSpcGCjg6foXCrcpBw8=
=nSbu
-----END PGP SIGNATURE-----

--8323329-424238335-1782468145=:907908--



--===============4540363374430411646==--