Displaying 1 result from an estimated 1 matches for "gam_fit".
Did you mean:
gafit
2013 Apr 20
0
Calculate confidence intervals in mgcv for unconditional on the, smoothing parameters
...using Simon Wood`s mgcv package version1.7-22and R version 3.0.0
(2013-04-03) for fitting a GAM-Model to the LIDAR Data contained in the
"SemiPar" package. Here is the code for fitting the model and for
plotting the result:
data("lidar")
attach(lidar)
###
# mgcv fitting
###
gam_fit <- gam(logratio ~ s(range, k = 40, bs = "cr"), gamma = 1.4,
method = "REML")
plot(gam_fit, res = TRUE, shade = TRUE, pch = "°")
Since the confidence interval in the above plot is pointwise, I would
like to calculate the critical value needed in order to construct...