Thanks, William. After converting Grup into the factor, I got the results.
Thanks, everyone to spend time to give their help.
Regards,
Greg
On Thu, Nov 7, 2019 at 12:02 PM William Dunlap wrote:
> You can get this error if one of the explanatory variables is not a
> factor. E.g.
> > WRS2::t2way
You can get this error if one of the explanatory variables is not a
factor. E.g.
> WRS2::t2way(y ~ x1 * x2, data =
expand.grid(y=11:12,x1=letters[11:13],x2=21:24))
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 s
As I said previously, you probably should contact the maintainer. But a
(wild??) guess might be that robust/resistant procedures -- which is what
you are using -- can downweight data values to 0 weight, effectively
removing them.This might lead to effectively empty cells in a cross
tabulation that
Hi David, Jim and Bert;
Thanks so much. Your responses are much appreciated. Here is the results
when I create a cross-tabulation from xtab(Grup~Time,cp) for the whole
data. It seems to me there is no problem. I am wondering why still I
have the
Error in x[[grp[i]]] :
attempt to select less tha
If a crosstabs on the two factors has any zero counts it might explain.
—
David
Sent from my iPhone
> On Nov 6, 2019, at 5:42 PM, Jim Lemon wrote:
>
> Hi Greg,
> I tried this:
>
> cp<-read.table(text="Birey Grup Time y
> 11 Cp1 0.7916386
> 11 Cp3 1.7463777
> 11 Cp7 1.2008390
Hi Greg,
I tried this:
cp<-read.table(text="Birey Grup Time y
11 Cp1 0.7916386
11 Cp3 1.7463777
11 Cp7 1.2008390
11 Cp14 0.6311380
11 Cp21 2.1563557
11 Cp28 1.2008390",
header=TRUE)
library(prettyR)
xtab(Grup~Time,cp)
Crosstabulation of Grup by Time
Time
Gr
This might be impossible to answer without all the data. You might wish to
contact the package maintainer for a question like this.
Cheers,
Bert
On Wed, Nov 6, 2019 at 1:58 PM greg holly wrote:
> I got the following error message after running t2way(y ~ Grup*Time, data
> = cp)
> Error in x
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.
Greg
> head(cp)
Birey Grup Time y
1 11 Cp1 0.791
8 matches
Mail list logo