| diff_terms | R Documentation |
Compare the formulas of two models and return the difference(s).
diff_terms(model1, model2)
model1 |
A fitted regression model (using lm, glm, gam, or bam). |
model2 |
A fitted regression model (using lm, glm, gam, or bam). |
A list with model terms that are not shared by both models.
Jacolien van Rij
Other Utility functions:
convertNonAlphanumeric(),
corfit(),
find_difference(),
missing_est(),
modeledf(),
observations(),
print_summary(),
refLevels(),
res_df(),
summary_data(),
timeBins()
data(simdat) # Fit simple GAM model: gam1 <- bam(Y ~ s(Time), data=simdat) gam2 <- bam(Y ~ Group+s(Time), data=simdat) diff_terms(gam1, gam2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.