Start with defining your dependent variable and independent variable(s). As an equation like y equals some function of x, the y is the dependent variable. It is often continuous, but does not have to be.
If your continuous variable is the dependent variable and you have one categorical independent variable then the ANOVA would be a general comparison tests determining if there are differences. This can be further broken down by a multiple comparison test. The Tukey test is commonly used if you assume normal distributions. The Kruskal-Wallis test would be the start of a non-parametric approach. Tim -----Original Message----- From: R-help <r-help-boun...@r-project.org> On Behalf Of RIDDHI BABEL via R-help Sent: Wednesday, May 3, 2023 11:42 AM To: r-help@r-project.org Subject: [R] Question about implementing statistical test in R [External Email] Hi, I am a new user and have a stats question that I need help implementing in R. I have 4 groups and I want to assess whether there is a statistical difference between these groups at baseline first in a global comparison test and then a pairwise comparison test. There are about 2 continuous variables and 10 categorical variables For the group wise comparison for continuous variables-I am using the Mann Whitney test For the categorical variables-I am using either chi square or Fisher exact test for both global comparison and pairwise comparison. What packages should I use to implement this in R? Is there any example code that I use? I was thinking tbl_summary but don't think that's the right one. Would really appreciate any help with this! Thank you! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.r-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.