I am a new user of R. I am trying to fit gam model with our air pollution data. I used
Foreign package to call data from SPSS and used MGCV package to fit gam. The following
are the steps I used:
> dust<- read.spss("a:dust9600jan.sav")
> c<-gam(MRESPALL~s(DUSTM)+s(TEMP)+s(RH),family=poisson,data=dust)
> summary(c)
Family: poisson
Link function: log
Formula:
MRESPALL ~ s(DUSTM) + s(TEMP) + s(RH)
Parametric coefficients:
Estimate std. err. t ratio Pr(>|t|)
constant -0.61508 0.03331 -18.47 < 2.22e-16
Approximate significance of smooth terms:
edf chi.sq p-value
s(DUSTM) 6.605 16.738 0.01515
s(TEMP) 2.47 5.253 0.10705
s(RH) 1 1.5727 0.20981
R-sq.(adj) = 0.0202 Deviance explained = 2.35%
UBRE score = 0.0031294 Scale est. = 1 n = 1692
I would like to know the relative risk. I don't know the command. Please, can anybody
help me to get the relative risk.
I am grateful for the help.
Joseph E. Gomez
[[alternative HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html