BookmarkSubscribeRSS Feed
Ana2017
Fluorite | Level 6

To choose the type of statistical analysis I need, these are some point to take into account:

I need a test to address the question is there a difference between groups? (independent groups.) Comparing between groups.

10 collection time points.

Independent variables: Categorical data (nominal).

Dependent variables (treatment): Categorical data (nominal).

4 Treatments.

Data with normal distribution (parametric tests)

 

Can be the Chi-Square X2 test suitable to be used in this situation?

 

All the best.

 

24 REPLIES 24
ballardw
Super User

What between the groups are you attempting to determine is different between the groups? The mean value? The distribution of values?

What defines a group?

 

How many categorical variables? How many levels of each categorical variable? and how big is your sample?

 

Use of the terminology dependent / independent looks more like some sort of regression.

 

And please describe how you get "data with normal distribution" when apparently everything you have is categorical.

Ana2017
Fluorite | Level 6

What between the groups are you attempting to determine is different between the groups? The mean value? The distribution of values?

I want to know it the type of environment affect the animal behaviour. For example, if Enriched environment 1 makes animals eat more often.

 

What defines a group?

A group is represented by a group of 10 animals in a same environment (Enriched environment 1, Enriched environment 2, Enriched environment 3, or Enriched environment 4). That is why I have 4 groups.

 

How many categorical variables? How many levels of each categorical variable? and how big is your sample?

Dependent variables: Categorical data (nominal): 3 different animal behaviours (Sleep, eat, drink).

Independent variables (treatment): Categorical data (nominal). 4 different environments (Enriched environment 1, Enriched environment 2, Enriched environment 3, Enriched environment 4).

Sample of 20 animals, 5 in each treatment.

Every 10 minutes a data was taken from each animal (Sleep, eat or drink). So, I have the data of every animal every 10 min.

 

And please describe how you get "data with normal distribution" when apparently everything you have is categorical. Uppps! Sorry for this misinterpretation. I am wrong in this.  

 

Thank you so much.

art297
Opal | Level 21

Dependent variables: Categorical data (nominal): 3 different animal behaviours (Sleep, eat, drink).

 

But you ask do animals sleep/eat/drink more.

 

What are the four levels of your dependent measures? Possibly, rather than nominal, they may be at least interval appearing.

 

Art, CEO, AnalystFinder.com

 

Ana2017
Fluorite | Level 6

Dependent variables: Categorical data (nominal): 3 different animal behaviours (Sleep, eat, drink).

 

But you ask do animals sleep/eat/drink more.

 

What I am wondering is:

Does the environment has an effect over animal behaviour?

As an example: Does the enviroment 1 makes animales sleep more? 

 

What are the four levels of your dependent measures? Possibly, rather than nominal, they may be at least interval appearing.

mmm... I think that they are nominal instead of interval. The level are different environments, similar if I have used differents types of diet. What makes your take these as intervals?

 

Thanks.

 

 

art297
Opal | Level 21

You didn't answer the question:

  For sleep, what are the four possible values and what does each value represent?

  For eat, what are the four possible values  and what does each value represent?

  For drink, what are the four possible values  and what does each value represent?

 

Art, CEO, AnalystFinder.com

 

Ana2017
Fluorite | Level 6

Sorry, I must said that:

dependet variable is animal behaviour: Classified in 4 cathegories: Sleep, Eat and Drink.

 

During 3 hours animals were analysed, the activity of each animal was register every 10 min (during that exactly moment) and classified into Sleep, Eat or Drink.

 

Moment                 Animal             Treatment          Behaviour

0                            1                      1                        Eat

10'                         1                      1                        Sleep

20'                         1                      1                        Sleep

.                              .                       .                        .

.                              .                       .                        .

.                              .                       .                        .

(0 to 180´)            (1 to 20)       (1 to 4)                   (Eat, Sleep or Drink)

 

Thanks.

 

Ana2017
Fluorite | Level 6

 

Sorry, I did not explain it clear.

 

The dependent variable is: Animal behaviour, which consist in 3 different activities: Eat, Sleep, and Drink.

During a period of 3 hours, I registered the activity (Eat, sleep or drink) of each animal every 10 min.

 

Time                                    Animal                               Treatment                         Behaviour

0                                          1                                          1                                          Eat        

10’                                       1                                          1                                          Sleep                                  

20’                                       1                                          1                                          Sleep                   

.                                           .                                           .                                           .                                   

.                                           .                                           .                                           .                                          

(from 0 to 180´)               (1 to 20)                               (1 to 4)                               (Eat, Sleep or Drink)

 

Thanks.

art297
Opal | Level 21

One possibility would be to write some code to restructure your data so that there will only be one record per animal, with each record containing animal number, treatment, and three measures, namely percent of time eating, percent of time sleeping and percent of time drinking.

 

If you do that, then you will have three interval measures and could use ANOVA, MANOVA or other parametric test.

 

Art, CEO, AnalystFinder.com

Ana2017
Fluorite | Level 6

Do you mean like this...

 

Animal                              Treatment                         % Eat       % Drink           %Sleep

1                                         1                                          30                 20                  50       

2                                         1                                          10                 20                  70       

3                                         1                                          60                 20                  20       

4                                         1                                          05                 10                  85                                           

5                                         1                                          30                 20                  50       

6                                          2                                         70                 20                  10        

7                                          2                                         30                 20                  50                                                 

(from 1 to 20)                   (1 to 4)                                        (Eat + Sleep + Drink= 100)

 

Can you share some Procedure (ANOVA or MANOVA or something) suitable for me to use, please?

 

Thanks.

 

 

Ana2017
Fluorite | Level 6

 

Do you mean this…?

 

Animal                              Treatment                         % Eat      % Drink     % Sleep 

1                                        1                                            20             30            50  

2                                        1                                            20             30            50                                  

3                                          1                                          40             10            50  

4                                          1                                          20             70            10  

5                                          1                                          10             10            80  

6                                          2                                          20             30            50  

7                                          2                                          60             20            20  

8                                          2                                          20             30            50  

 (from 1 to 20)               (1 to 20)                               (%Eat + %Sleep + %Drink = 100)

 

Thanks.

 

CAn you suggest me any ANOVA or MANOVA procedure to use? Thanks.

art297
Opal | Level 21

Yes, that is what I was thinking, but you have to provide some more specific info. How many animals are there, how many treatments are there, and does each animal get only one treatment, multiple treatments, or all treatments.

 

Art, CEO, AnalystFinder.com

 

Ana2017
Fluorite | Level 6
There are 20 animals (5 per treatment).
There 4 Treatments.
Each animal get only one treatment.
art297
Opal | Level 21

One of the forum's statisticians will have to chime in but, from my non-statistician perspective, I'd guess that your animals per treatment may be too small to have sufficient power to be able to reject a null hypothesis.

 

You just barely meet the n-k (i.e., 5-4 > 0) condition, but you'd have to run the tests (and probably power estimates) to be sure.

 

As for the code regarding an ANOVA,

proc anova data=yourdatasetname;
  class treatment;
  model sleep = treatment;
run;
proc anova data=yourdatasetname;
  class treatment;
  model eat = treatment;
run;
proc anova data=yourdatasetname;
  class treatment;
  model drink = treatment;
run;

Similarly, for the MANOVA,

proc glm data = yourdatasetname;
  class treatment;
  model eat drink sleep = treatment / SS3;
  manova h = treatment;
run;

Art, CEO, AnalystFinder.com

 

sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

Assuming that you have no hypotheses to test about behaviour over the 3 hour period (in other words, time is not a factor in the model), I would consider a generalized linear model with a multinomial distribution and a generalized logit link, where Behaviour (with 3 outcomes) is the multinomial response. 

 

Unless you are familiar with this type of model, it probably is not a good place to start due to its complexity. So you could scale back, and look at a generalized linear model with a binomial distribution for each Behaviour separately. For example, you could compare the proportion of Eat observations among treatments using (number of Eat observations during 3 hour period)/(total number of observations during 3 hour period) as the binomial response. If all went well, you could then ramp up to a multinomial response.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 24 replies
  • 2060 views
  • 3 likes
  • 5 in conversation