Re: [R] Survey Data - comparing multiple groups

2019-08-16 Thread Mavra Ahmed
] Survey Data - comparing multiple groups > I would like to be able to get p-values between the groups and be able to > adjust for multiple comparisons and would appreciate if someone can guide me. > I did convert my df into a svrepdesign object as follows: > > df<-svrepdesign

Re: [R] Survey Data - comparing multiple groups

2019-07-27 Thread Abby Spurdle
> I would like to be able to get p-values between the groups and be able to adjust for multiple comparisons and would appreciate if someone can guide me. > I did convert my df into a svrepdesign object as follows: > > df<-svrepdesign (data=df1, scale=1, repweights = df1[, 496:995], type="BRR", com

Re: [R] Survey Data - comparing multiple groups

2019-07-25 Thread Mavra Ahmed
vra Ahmed Cc: r-help@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

Re: [R] Survey Data - comparing multiple groups

2019-07-25 Thread Abby Spurdle
> 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

[R] Survey Data - comparing multiple groups

2019-07-25 Thread Mavra Ahmed
Hi Everyone, I am trying to assess whether the mean of carbohydrate intake (dependent variable = continuous) is significantly different between five groups (groups = people categorized into five different groups) (independent variable= categorical). This is survey data with replicates and ther