Home javascript android java php c# ubuntu python c++ c ios TAGS

Error in crossprod(x, y) : requires numeric/complex matrix/vector arguments


Date : 2019-06-03 08:58:15 , By : Kardashev3

This is a follow-up question to Which model for my data? (testing the differences in slope for three groups).

The solution worked for an exemplary data set (see linked question), but I encountered an error using another data set:

    Input = ("
         Group  Time    Size
         A  1   1.08152
         A  2   1.10589
         A  3   1.13292
         B  1   1.04597
         B  2   1.05763
         B  3   1.07023
         B  4   1.08612
         B  5   1.10059
         B  6   1.11589
         B  7   1.13143
         B  8   1.14741
         B  9   1.16721
         B  10  1.18288
         C  1   1.04777
         C  2   1.06145
         C  3   1.07484
         C  4   1.08908
         C  5   1.10346
         C  6   1.11866
         C  7   1.13375
         C  8   1.14931
         C  9   1.16563
         C  10  1.18294
         ")
dat = read.table(textConnection(Input),header=TRUE)

When I build the model

(m1 <- gls(Size ~ Time * Group, dat, correlation = corAR1(form = ~ Time | Group), weights = varIdent(form = ~ 1 | I(Group == "A"))))

and perform pairwise testing

pairs(emtrends(m1, ~ Group, var = "Time"))

I encounter this error:

Error in crossprod(x, y) : requires numeric/complex matrix/vector arguments

Now I would like to know why this error happens. Since the solution worked for the other data set it may have something to do with the above data?

TAGS : r
- Technology - Yellow pages
» java
» php
» c#
» ubuntu
» python
» c++
» c
» ios
» jquery
» html
» sql
» r
» mysql
» linux
» access
» iphone
» css
» excel
» vb.net
» .net
» ruby
Privacy Policy - Copyrights Notice - Terms - Contact Us 2019 © tinytut
Licensed under cc by-sa 3.0 with attribution required.