Skip to content
Prev 14161 / 20628 Next

MCMCglmm predictions using new data error

Hi Alberto,

having id=1:30 in the prediction grid should work.

I ideally it should work with a constant too, but I need to change the  
source code from

Z<-Z[ordering,]

to

Z<-Z[ordering,,drop=FALSE]

on L576. I will include it in the next update.

Coercing a 1-D matrix into numeric rather than vector has to be one of  
the most annoying design flaws in R!

Cheers,

Jarrod.




Quoting Alberto Gallano <alberto.gc8 at gmail.com> on Fri, 8 Jan 2016  
11:51:33 -0500:

  
    
Message-ID: <20160201151045.667361jq82awnf8c@www.staffmail.ed.ac.uk>
In-Reply-To: <CAO+b4j-uRjS3_hGR+hTUxLAchs8-N3Kne9=fxtZDa0q5Jmvtsw@mail.gmail.com>