Re: [Rd] model.matrix() may be misleading for "lme" models

2024-09-21 Thread Ivan Krylov via R-devel
Dear Prof. John Fox, В Sat, 21 Sep 2024 12:47:49 -0400 John Fox пишет: > NextMethod(formula(object), data=eval(object$call$data), > contrasts.arg=object$contrasts) The use of NextMethod worries me a bit. It will work as intended as long as everyone gives fully-named argume

Re: [Rd] model.matrix() may be misleading for "lme" models

2024-09-21 Thread John Fox
Dear list members, After further testing, I found that the following simplified version of model.matrix.lme(), which omits passing xlev to the default method, is more robust. The previous version generated spurious warnings in some circumstances. model.matrix.lme <- function(object, ...){