Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- ANOVA using geometric mean

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 10-10-2016 04:28 PM
(5242 views)

I was wondering if I could do ANOVA with geometric mean instead of LS means?

12 REPLIES 12

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Can you explain why you want to use "geometric mean ANOVA" ?

PG

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

You cannot take the geometric mean of negative values.

One common misunderstanding about ordinary least squares estimation is about normality. Your values do not have to be distributed normally for OLS inference to be valid. Your values can be the sum of some fixed effects and random errors (noise). It is the random error that must obey a normal distribution. Thus the residuals from OLS must be normal, not the raw data.

Geometric mean ANOVA is actually ordinary ANOVA of log-transformed data. It should be considered for heteroscedastic data, when the standard deviation of errors seems to be proportional to the mean.

So, the first question is: Why is ANOVA not appropriate for your data?

PG

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I have a follow up question to this response. I want to compare the geometric mean concentrations of three BMI groups at two different time points (after start of treatment and after end of treatment). Would I simply be running an ANOVA on the (natural) log-transformed concentrations, then taking that p-value? My main goal is to see if at least one BMI group is different using Welch's ANOVA.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I can't be definite without seeing your data and knowing more about the context, but your proposed approach sounds like a good idea to me.

PG

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Sorry, I made a typo. It should be less than 1 not less than 0. So no negative numbers.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

That is really interesting question. I also want know.

But I think you can't. Using algorithm mean you can get chi-square value,

ChiSq1/ChiSq2 ~ F distribution, so you can do ANOVA , but I am afraid you can use geometric mean to get that chi-square value.

Maybe someone can develop some other quasi-ANOVA for geometric mean.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Product has 3 levels A, B and C. Time has 3 points 0, 15 and 30.

proc glimmix data=yourdata;

class subjid product time;

model bacterial_counts=product|time/link=log;

random time/residual subject=subjid type=un;

lsmeans product time product*time/diff adjdfe=row adjust=simulate ilink;

run;

Steve Denham

**Available on demand!**

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

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.