calculation of minimum field infection rates (mfir) and maximum likelihood estimate ( mle )

34
Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate (MLE) Lisa Reed, Ph.D Lisa Reed, Ph.D Center for Vector Biology Center for Vector Biology Rutgers University Rutgers University 21 April 2011 21 April 2011

Upload: pabla

Post on 10-Jan-2016

43 views

Category:

Documents


0 download

DESCRIPTION

Catch the Fever!. Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE ). Lisa Reed, Ph.D Center for Vector Biology Rutgers University 21 April 2011. What is in this talk?. What is an MFIR? History How do we calculate MFIR? Getting data from ESRI - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Calculation ofMinimum Field Infection Rates

(MFIR) andMaximum Likelihood Estimate (MLE)

Lisa Reed, Ph.DLisa Reed, Ph.DCenter for Vector BiologyCenter for Vector Biology

Rutgers UniversityRutgers University21 April 201121 April 2011

Page 2: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

What is in this talk?• What is an MFIR?• History• How do we calculate MFIR?• Getting data from ESRI• Formulas and Pivot Table in

Excel• Calculating MFIR• What is MLE• Using Excel add-in to

calculate MLEs• Demos • Which is best?

AP photo

Page 3: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Minimum Field Infection Rate• Female mosquitoes are live-collected from traps, and

grouped by species into vials• Each vial may contain up to a certain number of

mosquitoes– 50 or 75– 100

• Pools are evaluated for virus (RT-PCR) and given a positive or negative result.

• Positive pools are counted, divided by all mosquitoes making up all pools evaluated and multiplied by 1000

Total number of positive poolsTotal Number of mosquitoes (positive and negative pools)

*1000

Page 4: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Number of infected mosquitoes per 1000

• It represents the MINIMUM number• Each pool acts like a single infected mosquito• A pool can have 30 out of 50 infected but will still only

contribute 1 to the rate

=66.67 =66.67

=166.67 =33.34

Page 5: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

MFIR History

• First mention in Proceedings of MFIR values came in 1974

• Complicated process to determine arbovirus presence– Grown in culture

• Cell culture (Vero)• Plaque Assay• Baby mice, chicks or hamsters

– Tested using hemagglutination, fluorescent antibody

• Not computerized• Our understanding of the epidemiology of

EEE and other arboviruses were becoming known.

Page 6: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Getting Your Data

• Download data from Department of Health site.– Use the correct variables

• Put the data in the correct form– Using formulas in Excel– Use pivot tables in Excel

• Apply the formula for MFIR

Page 7: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Getting Data from the Health Department

• Go to www.state.nj.us and log in.• Click on “West Nile Virus

Surveillance”• Go To Mosquito>Reports and

Maps>Extract Mosquito Data

Page 8: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Getting Data

• Select the appropriate dates

Page 9: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Picking Columns is Critical• Lots of columns to choose.• Choosing ALL of them can create a

HUGE and possibly incomplete data file.

• There are certain columns you need for calculating infection rates (16):– “First 6”

• USI, SUBUSI, PHELMPID, DATECOLL, SPECIES, MOSCOUNT

– RESULT, SITENAME, SURVTYPE, LAT, LON, COUNTY, FINSTAT, EEEFINAL, LABNAME, PATHOGEN

Page 10: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Extracted Data

Page 11: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Save “Data Dump” file

Page 12: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Saving to CSV file

Page 13: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

In Excel

Page 14: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Format/Calculate Variables

• Formulas:– A formula in Excel starts with = or + sign– A formula in Excel refers to another variable (generally)

• Week Number formula:– +weeknum(date)– Pull on bottom cornerto fill column with formula(double click)

• Substitute Aedes for Ochlerotatus

Page 15: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Preserving Your Changes

• Copy the column with the formula (highlight and right-mouse click)

• Paste as “Values”• Hit Save

Page 16: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Using Pivot Tables to Get the Information You Want

• Pivot Tables Sorts and Manipulates Data in a Summary Fashion

• Uses a Layout Wizard to Make Your Choices Easier

Page 17: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Pivot Table 1

• Highlight Data (hold down shift key and arrow down, then arrow across)

• INSERT Pivot Table

Page 18: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Pivot 2

• A new sheet is created

• Can be modified• Lists variables in

your dataset• Has place for

column, row, value and filter

What do these mean?

Page 19: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Drag Variables to Label, Value and Filters

• Drag Species to Row Labels and it will place the species names, one to each row

• Drag Results to Column Label

• Drag Pathogen to Filter

• Drag Moscount to Values

Page 20: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Drag Moscount to Values twice• We need both the total number (sums) of mosquitoes tested

AND number of pools (counts)

• Change the values by clicking on moscount down arrow to change value to sums

Page 21: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Page 22: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Copy Pivot Table to New Sheet

• Use “Paste Special”

• Use Values

Page 23: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Get Rid of Unnecessary Columns

• Click on column header and control key to select columns

• Delete

Page 24: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Calculate MFIR

• Add formula to adjacent column– (Pos pools)/(Total Mosquitoes) * 1000

• Fill in formula to end, format if you wish

Page 25: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Your MFIR values

• You can add different variables (such as type of trap, months, township) if you are interested in more precise information

• You can use data from different time periods

• You can use this data to justify your actions

DEMO

Page 26: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

MLE History

• Maximum Likelihood Estimate• Statistical term that takes into account POOL SIZE• Not easy to hand calculate• Download Excel add-in from CDC:

– http://www.cdc.gov/ncidod/dvbid/westnile/software.htm

• Calculates MLE, an adjusted MLE, MFIR and confidence intervals relevant to MLE.

• MLEs are more accurate when the infection rate is higher or when pool size is large because there is more of a likelihood that a pool will have more than one infected mosquito.

Page 27: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Adding an Add-in to Excel

Page 28: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Open a downloaded dataset

• Find your variables

• Sort on Result – delete zero rows.

• Add and column next to Result

• Change “Result” to a number using a formula:– +if((result)= “Neg”,0,1)

Page 29: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

The Add-in

Page 30: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Page 31: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

Caution!

• Sort on the results column and delete any values not Neg or Pos.

• Sort on pathogen column and delete any pathogens not the one you want to look at.

Page 32: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

The Result on a New Sheet

Demo

Page 33: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Questions?

Lisa Reed, Ph.DLisa Reed, Ph.DCenter for Vector BiologyCenter for Vector Biology

Rutgers UniversityRutgers University21 April 201121 April 2011

Page 34: Calculation of Minimum Field Infection Rates (MFIR) and Maximum Likelihood Estimate ( MLE )

Rutgers University - Center for Vector Biology

http://ardjou.cghub.com