SCM

[#6803] nlrob not honouring formula environment

Date:
2023-04-15 23:19
Priority:
3
State:
Open
Submitted by:
Carlos Pita (memeplex)
Assigned to:
Nobody (None)
Hardware:
Macintosh
Product:
None
Operating System:
MacOS X
Component:
None
Version:
None
Severity:
None
Resolution:
None
URL:
Summary:
nlrob not honouring formula environment

Detailed description
There is this line near the end of nlrob:

setNames(eval(formula[[3]], c(data, start)), obsNames)

This ignores the environment of the passed formula, which is used in other calls to eval.

My formula uses a closure passed from the caller as part of the formula environment. Unfortunately, after successfully carrying out the IRLS algorithm, nlrob fails at the aforementioned line.

Comments:

Message  ↓
Date: 2023-04-17 07:28
Sender: Martin Maechler

Thanks; from what you write, I tend to agree this should be improved. Still, can you please add a (self contained) reproducible example, exhibiting the problem?

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge