Skip to content
Prev 366223 / 398503 Next

Any help on R code interpretation?

Hi,

It's a bit hard to read what you have provided (don't forget that code pasted into emails on this list are best rendered if the email client is configured for plain text not html), but I suspect that it there is no %*%t. Instead, I think it should look like...

x %*% t(y)

where your x is 'mod7' and your y is all that other stuff. You might try ...

prediction = plogis( as.matrix( mod7 %*% t(ab) ) )

but that's just a guess.

Ben
Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
http://www.bigelow.org