View source: R/calcs_fitting.R
calculate_model_stats | R Documentation |
Calculate model statistics
calculate_model_stats( model_data, fit_coeffs_vec, glm_results = NULL, fit_algorithm = NULL, response = "yield", link = c("identity", "log"), type = c("theory", "raw"), Y = NULL, mu = NULL, n = NULL, npar = NULL, genome_factor = NULL, calc_type = c("fitting", "estimation") )
model_data |
Data of the model. |
fit_coeffs_vec |
Vector of fitting coefficients. |
glm_results |
Results of glm. |
fit_algorithm |
String of the algorithm used. |
response |
Type of response. |
link |
Fit link. |
type |
Theoretical or raw glm model statistics. |
Y |
Y response (required in constraint-maxlik-optimization). |
mu |
mu response required in constraint-maxlik-optimization). |
n |
number of parameters (required in constraint-maxlik-optimization). |
npar |
number of parameters (required in constraint-maxlik-optimization). |
genome_factor |
Genomic conversion factor used in translocations. |
calc_type |
Calculation type, either "fitting" or "estimation". |
Data frame of model statistics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.