Kommandot plot

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Noam Ross

Senior Research Scientist, EcoHealth Alliance

Kommandot plot

plot(gam_model)
?plot.gam
Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Välja partiella effekter

plot(gam_model, select = c(2, 3))
plot(gam_model, pages = 1)
plot(gam_model, pages = 1, all.terms = TRUE)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Visa data i diagrammen

plot(gam_model, rug = TRUE)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Visa data i diagrammen (2)

plot(gam_model, residuals = TRUE)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Visa data i diagrammen (3)

plot(gam_model, rug = TRUE, residuals = TRUE,
     pch = 1, cex = 1)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Visa standardfel

plot(gam_model, se = TRUE)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Visa standardfel (2)

plot(gam_model, shade = TRUE)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Visa standardfel

plot(gam_model, shade = TRUE, shade.col = "lightblue")

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Transformera standardfel

plot(gam_model, seWithMean = TRUE)

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Transformera standardfel (2)

plot(gam_model, seWithMean = TRUE, shift = coef(gam_model)[1])

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Nu kör vi en övning!

Icke-linjär modellering med Generalized Additive Models (GAMs) i R

Preparing Video For Download...