Any help on R code interpretation?
?"%*%" ?t It looks like you need to spend some (more) time with an R tutorial or two to understand basic R syntax. Please do so before posting further here. There are many good ones on the web. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Dec 22, 2016 at 5:08 AM, Marna Wagley <marna.wagley at gmail.com> wrote:
HI R user,
I was looking a r code and saw "%*%t", what does it("%*%t") mean?. The
example is given below.
For example: here is the code where "%*%t" has been used. when I run the
formula but did not run in my data.
prediction=plogis(as.matrix(mod7)%*%t(with(subset(data,site!='AB'),cbind(1,
site=='BC', site =='MM', site =='XY',Temp,Treatment=='Local'))))
Can I get the same result of above using the following code? Do both codes
give same results?
ab<-with(subset(data,site!='AB'),cbind(1,site=='BC', site =='MM', site ==
'XY',Temp,Treatment=='Local'))
prediction =plogis(as.matrix(mod7),(ab))
Thanks,
MW
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.