From 20b9c584e7c43ecbb708459e531c24a1a4751e17 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 9 Nov 2019 01:05:51 +0100 Subject: Add a lack-of-fit test - Switch an example dataset in the test setup to a dataset with replicates, adapt tests - Skip the test for lrtest with an update specification as it does not only fail when pkgdown generates static help pages, but also in testthat --- NAMESPACE | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NAMESPACE') diff --git a/NAMESPACE b/NAMESPACE index 8ea4c684..f428a612 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -4,6 +4,7 @@ S3method("[",mmkin) S3method(AIC,mmkin) S3method(BIC,mmkin) S3method(confint,mkinfit) +S3method(loftest,mkinfit) S3method(logLik,mkinfit) S3method(lrtest,mkinfit) S3method(mkinpredict,mkinfit) @@ -32,6 +33,7 @@ export(backtransform_odeparms) export(endpoints) export(ilr) export(invilr) +export(loftest) export(logistic.solution) export(lrtest) export(max_twa_dfop) @@ -73,8 +75,11 @@ importFrom(parallel,parLapply) importFrom(stats,AIC) importFrom(stats,BIC) importFrom(stats,aggregate) +importFrom(stats,coef) importFrom(stats,cov2cor) importFrom(stats,dist) +importFrom(stats,dnorm) +importFrom(stats,lm) importFrom(stats,logLik) importFrom(stats,nlminb) importFrom(stats,nobs) -- cgit v1.2.1 From f6385b071cee2c261da28bf98fd1599da1a30ddb Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 13 Nov 2019 11:05:39 +0100 Subject: Likelihood ratio test for mmkin columns with two fits --- NAMESPACE | 1 + 1 file changed, 1 insertion(+) (limited to 'NAMESPACE') diff --git a/NAMESPACE b/NAMESPACE index f428a612..e561621b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -7,6 +7,7 @@ S3method(confint,mkinfit) S3method(loftest,mkinfit) S3method(logLik,mkinfit) S3method(lrtest,mkinfit) +S3method(lrtest,mmkin) S3method(mkinpredict,mkinfit) S3method(mkinpredict,mkinmod) S3method(nobs,mkinfit) -- cgit v1.2.1 From c3700bec3a704660d3ade7a54c56b7084beb02b4 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 13 Nov 2019 21:15:35 +0100 Subject: Calculate Akaike weights --- NAMESPACE | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NAMESPACE') diff --git a/NAMESPACE b/NAMESPACE index e561621b..26995055 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -3,6 +3,8 @@ S3method("[",mmkin) S3method(AIC,mmkin) S3method(BIC,mmkin) +S3method(aw,mkinfit) +S3method(aw,mmkin) S3method(confint,mkinfit) S3method(loftest,mkinfit) S3method(logLik,mkinfit) @@ -30,6 +32,7 @@ export(IORE.solution) export(SFO.solution) export(SFORB.solution) export(add_err) +export(aw) export(backtransform_odeparms) export(endpoints) export(ilr) -- cgit v1.2.1