Displaying 2 results from an estimated 2 matches for "gam4".
Did you mean:
gam
2012 Sep 06
2
Generalized additive models: Plots for Qualitative Data
...for my quantitative variables and
not my qualitative variables. Is there any way to fix this issue? I listed
some of my code below:
> library(mgcv)
This is mgcv 1.7-13. For overview type 'help("mgcv-package")'.
> Final <- read.csv("Final.csv", header=TRUE)
> gam4<-gam(Bonnet ~ s(Depth, bs="cs", k=4) + s(Distance, bs="cs", k=4) +
s(Width, bs="cs", k=4) + as.factor (System) + as.factor(Channel) +
as.factor (Profile) + s(Slope, bs="cs", k=4), data = Final)
> plot(gam4, shade=TRUE, pages=1)
Sincerely,
Dontrece
-...
2012 Dec 07
1
Negative Binomial GAMM - theta values and convergence
Hi there,
My question is about the 'theta' parameter in specification of a NB GAMM.
I have fit a GAM with an optimum structure of:
SB.gam4<-gam(count~offset(vol_offset)+
s(Depth_m, by=StnF, bs="cs")+StageF*RegionF,
family=negbin(1, link=log),
data=Zoop_2011[Zoop_2011$SpeciesF=='SB',])
However, this GAM shows heterogeneity in the residuals, and the model fit is not great. I would like t...