Displaying 1 result from an estimated 1 matches for "fititng".
Did you mean:
fiting
2003 Nov 20
0
Avoding scoping problems with model fit objects
...at, but
- its contents might have changed and
- it would get saved with the object, probably bloating the saved session.
There is a better way, to save the model frame on the model object, which
is why the example above has non-default args. So:
Lesson 1
Supply a model= argument in your model-fititng functions and consider
having model=TRUE as the default. (I have added this in a few places in
R-devel and my own packages, including to multinom.)
Also ensure that all the useful information is in the model frame, not
just variables needed in the formula but e.g. subset and weights.
Lesson 2...