Skip to content

Commit

Permalink
Add consulting conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
jarad committed Feb 27, 2018
1 parent 3a3316f commit 5ab2e3d
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions _posts/2018-02-22-heteroskedasticity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
layout: post
title: "Heteroskedasticity in bird point counts"
description: ""
category: [Consulting]
tags: [Poisson regression,Poisson]
---
{% include JB/setup %}


## Problem description

### Data

Bird (Dabbling Ducks) count data on 30 wetlands for 2 years for about 10 weeks.

### Modeling

Starting with a mixed effect Poisson regression model.
Then moved to
a mixed effect linear model using square root of the count as the response
and week as a weight (due to heteroskedasticity by week).

#### Fixed effects

- Week (numeric or categorical)
- Emergent
- Year
- Area
- Age of wetland
- WC ?

#### Random effects

- site
- site x year


### Results

Heteroskedasticity appears to exist with more variability in early weeks
compared to later.



## Advice

Think about

- At least for model building, use linear model with square root of count
- Treat week as categorical
- Consider repeated measures structure on random effects
- Try the analysis in SAS so that you have easier control of random effects
and error variances

0 comments on commit 5ab2e3d

Please sign in to comment.