From 20b9c584e7c43ecbb708459e531c24a1a4751e17 Mon Sep 17 00:00:00 2001
From: Johannes Ranke
Likelihood ratio test for mkinfit models
Lack-of-fit test for models fitted to data with replicates
Likelihood ratio test for mkinfit models
# S3 method for mkinfit -lrtest(object, object_2 = NULL, ...)+lrtest(object, object_2 = NULL, ...) + +# S3 method for mmkin +lrtest(object, ...)
| object | -An |
+ An |
||
|---|---|---|---|---|
| object_2 | diff --git a/man/lrtest.mkinfit.Rd b/man/lrtest.mkinfit.Rd index bc8ab4dc..84d7bc99 100644 --- a/man/lrtest.mkinfit.Rd +++ b/man/lrtest.mkinfit.Rd @@ -2,12 +2,16 @@ % Please edit documentation in R/lrtest.mkinfit.R \name{lrtest.mkinfit} \alias{lrtest.mkinfit} +\alias{lrtest.mmkin} \title{Likelihood ratio test for mkinfit models} \usage{ \method{lrtest}{mkinfit}(object, object_2 = NULL, ...) + +\method{lrtest}{mmkin}(object, ...) } \arguments{ -\item{object}{An \code{\link{mkinfit}} object} +\item{object}{An \code{\link{mkinfit}} object, or an \code{\link{mmkin}} column +object containing two fits to the same data.} \item{object_2}{Optionally, another mkinfit object fitted to the same data.} -- cgit v1.2.3 From c3700bec3a704660d3ade7a54c56b7084beb02b4 Mon Sep 17 00:00:00 2001 From: Johannes Ranke
| object | +An mmkin column object, containing two or more
+ |
+
|---|---|
| ... | +Not used in the method for mmkin column objects, +further mkinfit objects in the method for mkinfit objects. |
+
Burnham KP and Anderson DR (2004) Multimodel + Inference: Understanding AIC and BIC in Model Selection + Sociological Methods & Research 33(2) 261-304
+ ++# \dontrun{ +f_sfo <- mkinfit("SFO", FOCUS_2006_D, quiet = TRUE) +f_dfop <- mkinfit("DFOP", FOCUS_2006_D, quiet = TRUE) +aw_sfo_dfop <- aw(f_sfo, f_dfop) +sum(aw_sfo_dfop)#> [1] 1aw_sfo_dfop # SFO gets more weight as it has less parameters and a similar fit#> [1] 0.5970258 0.4029742f <- mmkin(c("SFO", "FOMC", "DFOP"), list("FOCUS D" = FOCUS_2006_D), cores = 1, quiet = TRUE) +aw(f)#> [1] 0.4808722 0.1945539 0.3245740#> [1] 1#> [1] 0.5970258 0.4029742# } +
Calculate Akaike weights for model averaging
Two component error model
Two-component error model
sigma_twocomp.Rd