[Rd] lm() takes weights from formula environment
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Mon Aug 10 00:05:32 CEST 2020
On 09/08/2020 3:07 p.m., Duncan Murdoch wrote:
> On 09/08/2020 3:01 p.m., John Mount wrote:
>> Doesn't this preclude "y ~ ." style notations?
>
> Yes, but you can use "y ~ . - w".
And as was pointed out to me offline, often one doesn't have a simple
vector w giving the weights, instead one computes the weights from the
predictors. So if weights = f(pred), the original "y ~ ." would be fine.
Duncan Murdoch
More information about the R-devel
mailing list