You are Here: Home >< Maths

Help in choosing a statistical test watch

1. Hi there,

I am not gifted and maths and therefore I am really struggling to pick an appropriate statistical test for my graph.

I graphed a barplot using R, with two variables. So on the y axis is the infiltration rate and on the x axis is the burn treatment applied to the ground and it is either grazed or ungrazed so there are two bars for each burn treatment.

I want to complete two tests
1) firstly whether there is a relationship between the burn treatments
2) to see whether there is a relationship between the burning and grazing on the infiltration rate.

I know I also need to have a p value. I am just unsure how to go about this. I also plan to do the statistical analysis using R, however I have access to minitab also.

Thanks.
2. (Original post by winniethorn)
Hi there,

I am not gifted and maths and therefore I am really struggling to pick an appropriate statistical test for my graph.

I graphed a barplot using R, with two variables. So on the y axis is the infiltration rate and on the x axis is the burn treatment applied to the ground and it is either grazed or ungrazed so there are two bars for each burn treatment.

I want to complete two tests
1) firstly whether there is a relationship between the burn treatments
2) to see whether there is a relationship between the burning and grazing on the infiltration rate.

I know I also need to have a p value. I am just unsure how to go about this. I also plan to do the statistical analysis using R, however I have access to minitab also.

Thanks.
I think u should use the spearman's rho test!
3. (Original post by winniethorn)
I am not gifted and maths and therefore I am really struggling to pick an appropriate statistical test for my graph.
I'll try to help - but we'll need to go through a few clarifications, as it's not completely clear what you need here. First point is that one does not apply a statistical test to a graph! Particular plots may help us to understand the structure of our data - but the first things we need to know are: what is the scientific question at hand? What is the data that you have available to address that question? So tell me - what experiment is being carried out here and what is the data that you have?

I graphed a barplot using R, with two variables. So on the y axis is the infiltration rate and on the x axis is the burn treatment applied to the ground and it is either grazed or ungrazed so there are two bars for each burn treatment.
It sounds as though you have a number of plots of land (how many?) some of which are grazed and some of which are ungrazed (how many?) To each of these plots of land one of two "burn" treatments are applied (randomly?) and an outcome - "infiltration rate" is measured at some point in time. Is this the set up?

I want to complete two tests
1) firstly whether there is a relationship between the burn treatments
It's unclear to me what this means - isn't the application of the burn treatment part of the experimental design? If so, the relationship between the burn treatments is fixed by the design of the experiment.

2) to see whether there is a relationship between the burning and grazing on the infiltration rate.
Right, this looks clearer - you want ANOVA in some form. The simplest way to do this in R is to set it up as a linear regression with infiltration rate as outcome and burn treatments and grazing statement as binary categorical explanatory variables. So something like

mod <- lm(infiltration ~ factor(burn) + factor(graze))
summary(mod)
4. I just want to calculate whether there will be differences in the infiltration rate at according to each burn treatment. With the hypothesis that the greatest rates will occur at a site which has only been burned once, a site burned every 20 years and a site burned every 10 years.

Does ANOVA still apply to this?
5. (Original post by winniethorn)
I just want to calculate whether there will be differences in the infiltration rate at according to each burn treatment. With the hypothesis that the greatest rates will occur at a site which has only been burned once, a site burned every 20 years and a site burned every 10 years.

Does ANOVA still apply to this?
So your burn variable is not binary (burn/no-burn)? Yes, the linear regression version of AVOVA still works fine, just be careful with the type of variable that you use to describe the burning - if it is once/every ten/every twenty years, then the syntax I've given you will still work best. If you have a lot of different levels of burning, tell me, and we'll think again.
6. Yes it the measurements are taken literally from a plot that was burned once 50 years ago, a plot burned every 20 years and a plot burned every 10 years. Each plot was split into two, one subject to grazing pressures and another without
8. (Original post by Gregorius)
So your burn variable is not binary (burn/no-burn)? Yes, the linear regression version of AVOVA still works fine, just be careful with the type of variable that you use to describe the burning - if it is once/every ten/every twenty years, then the syntax I've given you will still work best. If you have a lot of different levels of burning, tell me, and we'll think again.

When I enter the ANOVA code you uploaded it states

Error non-numeric argument to function
9. (Original post by winniethorn)
When I enter the ANOVA code you uploaded it states

Error non-numeric argument to function
You need to prepare your data appropriately.

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: February 9, 2018
Today on TSR

Are you living on a tight budget at uni?

From budgets to cutbacks...

University open days

1. University of Cambridge
Wed, 26 Sep '18
2. Norwich University of the Arts
Fri, 28 Sep '18
3. Edge Hill University
Faculty of Health and Social Care Undergraduate
Sat, 29 Sep '18
Poll
Useful resources

Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

How to use LaTex

Writing equations the easy way

Study habits of A* students

Top tips from students who have already aced their exams

Chat with other maths applicants