residuals.MArrayLM() ignores 'design' argument.
1
0
Entering edit mode
@gregory-warnes-2155
Last seen 8.4 years ago
United States

The function limma::residuals.MArrayLM ignores the 'design' argument.

The current code is:

fitted.MArrayLM <- function(object,design=object$design,...)
#    Fitted values from MArray linear model fit
#    Gordon Smyth
#    29 November 2005
{
    object$coefficients %*% t(object$design)
}

and should be changed to 

fitted.MArrayLM <- function(object,design=object$design,...)
#    Fitted values from MArray linear model fit
#    Gordon Smyth
#    29 November 2005
{
    object$coefficients %*% t(design)
}
limma • 644 views
ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 2 minutes ago
WEHI, Melbourne, Australia

Thanks for bringing this to my attention.

The current code is actually correct. Rather than changing the code, I will remove the 'design' argument, because there are no circumstances in which it would be reasonable to supply an external design matrix.

The reason for the spurious argument is historical. In the very beginning, MArrayLM fitted model objects didn't store the design matrix, but now they do.

ADD COMMENT

Login before adding your answer.

Traffic: 484 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6