Re: [R] yuen function of the WRS2 package

2016-08-31 Thread James Henson
Thanks, The 'droplevels' statement works. Best regards, James Henson On Tue, Aug 30, 2016 at 5:34 PM, William Dunlap wrote: > yuen does not work when there unused levels in the factors given to it. > >> yuen(GoalsGame ~ League, tr=0.2, data = SpainGer) > Call: > yuen(formula = GoalsGame ~ League

Re: [R] yuen function of the WRS2 package

2016-08-30 Thread William Dunlap via R-help
yuen does not work when there unused levels in the factors given to it. > yuen(GoalsGame ~ League, tr=0.2, data = SpainGer) Call: yuen(formula = GoalsGame ~ League, data = SpainGer, tr = 0.2) Test statistic: NaN (df = NA), p-value = NA Trimmed mean difference: NaN 95 percent confidence interva

Re: [R] yuen function of the WRS2 package

2016-08-30 Thread Bert Gunter
James: To be clear, I know nothing about this package, but the following may be helpful for those who do: 1. What exacty was the error message that you received? Or was it a warning? "cannot read" may be too vague to allow others to respond. 2. ?maintainer to find the package maintainer. It may

[R] yuen function of the WRS2 package

2016-08-30 Thread James Henson
Greetings R community, Here is a small but perplexing problem with the ‘yuen’ function in the ‘WRS2’ package. I begin with the ‘eurosoccer’ data frame from the ‘WRS2’ package. Then make a subset that contains only two Leagues Spain and Germany (subset data frame is ‘SpainGer’). The ‘yuen’ functio