Re: [R] Question about implementing statistical test in R

2023-05-03 Thread Ebert,Timothy Aaron
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 independ

[R] Question about implementing statistical test in R

2023-05-03 Thread RIDDHI BABEL via R-help
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 va

Re: [R] [External] Error in percentage stacked barplot

2023-05-03 Thread Richard M. Heiberger
likert is built on the lattice barchart function. Hence everything in ?panel.barchart ?xyplot applies. The legend is constructed with the auto.key argument. You can move the legend to the left, but that is not a good idea for a horizontal barchart. likert(t(hellisheidi), ReferenceZero=.5,

Re: [R] [External] Error in percentage stacked barplot

2023-05-03 Thread Maria Lathouri via R-help
Dear Richard,  Thank you very much for your reply. I went through the code and it worked. I was also able to change the colours.  I was wondering if I can change the legend position; instead of being in the bottom to be on the left side.  I tried the following but without any success strip