View source: R/compareModelFits.R
findOptDiffByCat | R Documentation |
Function to find differences between 'optimal' fits to models
findOptDiffByCat(o, n, str = "", type = "objfun", diffcrit = 10, print = FALSE)
o |
|
n |
|
str |
|
type |
|
print |
|
Example:
o: model.fits list object element (e.g., an element from the list from source('ModelFits.init.R'))
n: corresponding model.fits list object element for comparison
#–loop over model fit categories and compare differences in 'objfun'
for (ctg in names(o))
findOptDiffByCat(o[ctg],n[ctg],ctg,type="objfun",diffcrit=10);
data.frame with elements:
diff - difference in values
str - string indicating category, value, and difference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.