calculate_model_stats: Calculate model statistics

View source: R/calcs_fitting.R

calculate_model_statsR Documentation

Calculate model statistics

Description

Calculate model statistics

Usage

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")
)

Arguments

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".

Value

Data frame of model statistics.


biodosimetry-uab/biodosetools documentation built on Nov. 28, 2024, 10:12 a.m.