calculate_model_stats: Calculate model statistics

Description Usage Arguments Value

View source: R/calcs_fitting.R

Description

Calculate model statistics

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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

Model statistics data frame


biodosimetry-uab/biodosetools documentation built on Jan. 19, 2022, 1:49 p.m.