[R] Survey Data - comparing multiple groups
Mavra Ahmed
m@vz@@hmed @end|ng |rom utoronto@c@
Fri Jul 26 03:57:00 CEST 2019
Thanks, Abby.
Apologies, I did convert my df into a svrepdesign object as follows:
df<-svrepdesign (data=df1, scale=1, repweights = df1[, 496:995], type="BRR", combined.weights=TRUE, weight=~WTS_P, na.rm=TRUE)
therefore, I have called "df" as a svrepdesign however, from the survey package, the svyranktest is shown with svydesign only and not with svrepdesign. I could consider using other tests such as svyglm but am also having issues with it.
Thank you,
Mav
________________________________
From: Abby Spurdle <spurdle.a using gmail.com>
Sent: July 25, 2019 9:48:05 PM
To: Mavra Ahmed <mavz.ahmed using utoronto.ca>
Cc: r-help using r-project.org <r-help using r-project.org>
Subject: Re: [R] Survey Data - comparing multiple groups
> I have ran Kruskal Wallis as follows but get the following error:
> svyranktest(CARB ~ group, df, test=c("KruskalWallis"))
From the survey package, I assume.
And df is a data frame, I also assume.
(Complete self-contained examples are good).
I checked the documentation.
The second argument is not a data frame.
[[alternative HTML version deleted]]
More information about the R-help
mailing list