| corfit | R Documentation |
Calculate the correlation between the fitted model and data.
corfit(model)
model |
A fitted regression model (using gam, or bam). |
Numeric value: correlation between fitted model and data.
Other Utility functions:
convertNonAlphanumeric(),
diff_terms(),
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, discrete=TRUE) corfit(gam1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.