For the example provided below, the subsetting happens in evaluating the
call to stats::model.formula in line 583 of nls.R
(https://github.com/wch/r-source/blob/e91be22f6f37644e5a0ba74a3dfe504a3a29e9f7/src/library/stats/R/nls.R#L583)
returning an appropriate (subsetted) data frame.
-Naras
On
Hi John,
In scanning some of the more popular model functions (e.g. lm(), glm(),
lme(), coxph(), etc.), none seem to provide examples of the use of the
'subset' argument, even though it is documented for them.
That being said, there is some old (2003) documentation by Prof Ripley here:
https