[R] problem in WRS2
m@k@hho||y @end|ng |rom gm@||@com
Thu Nov 7 21:23:37 CET 2019
Thanks, William. After converting Grup into the factor, I got the results.
Thanks, everyone to spend time to give their help.
On Thu, Nov 7, 2019 at 12:02 PM William Dunlap <wdunlap using tibco.com> wrote:
> You can get this error if one of the explanatory variables is not a
> factor. E.g.
> > WRS2::t2way(y ~ x1 * x2, data =
> Error in x[[grp[i]]] :
> attempt to select less than one element in get1index
> The immediate cause is that t2way uses 1:p instead of seq_len(p) when p
> may be zero, but I suspect that the code should be converting some things
> to factors so p cannot be zero. Take this up with the package's maintainer.
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
> On Wed, Nov 6, 2019 at 1:58 PM greg holly <mak.hholly using gmail.com> wrote:
>> I got the following error message after running t2way(y ~ Grup*Time, data
>> = cp)
>> Error in x[[grp[i]]] :
>> attempt to select less than one element in get1index
>> a part of the data is given below. Your help is highly appreciated.
>> > head(cp)
>> Birey Grup Time y
>> 1 1 1 Cp1 0.7916386
>> 2 1 1 Cp3 1.7463777
>> 3 1 1 Cp7 1.2008390
>> 4 1 1 Cp14 0.6311380
>> 5 1 1 Cp21 2.1563557
>> 6 1 1 Cp28 1.2008390
>> [[alternative HTML version deleted]]
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help