Hi, I am trying to runn a age-period-cohort model, but here is what I am
having problem with, hope you can help me!

This is what I am trying to do:
sumzero_a<-((A-min(A))/5+1) - mean((A-min(A))/5+1)  where A is my age
variable (numeric, the mid-point of a five-year age group), but I got the
following error:

Error in min(..., na.rm = na.rm) : invalid 'mode' of argument

I am pretty sure I have the variable "A" in my data, can you see why this
happens?

Thanks.

Yanyan



======================================
Yanyan Gong, MSc
Senior Research Associate
Ontario Cervical Screening Program
Cancer Care Ontario
620 University Ave, 11th Floor
Toronto ON M5G 2L7
(416) 971-9800, ext 3304
yanyan.gong@cancercare.on.ca
======================================



This e-mail message (and any attachments) may contain confid...{{dropped}}


