From 2bb59c88d49b193f278916ad9cc4de83c0de9604 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 2 Mar 2022 18:03:54 +0100 Subject: Make tests more platform independent, update docs --- docs/reference/logLik.mkinfit.html | 211 +++++++++++++------------------------ 1 file changed, 75 insertions(+), 136 deletions(-) (limited to 'docs/reference/logLik.mkinfit.html') diff --git a/docs/reference/logLik.mkinfit.html b/docs/reference/logLik.mkinfit.html index 83fb4e48..dc1bfbba 100644 --- a/docs/reference/logLik.mkinfit.html +++ b/docs/reference/logLik.mkinfit.html @@ -1,71 +1,16 @@ - - - - - - - -Calculated the log-likelihood of a fitted mkinfit object — logLik.mkinfit • mkin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Calculated the log-likelihood of a fitted mkinfit object — logLik.mkinfit • mkin - - - - - - - - - - + + - - - -
-
- -
- -
+

This function returns the product of the likelihood densities of each observed value, as calculated as part of the fitting procedure using -dnorm, i.e. assuming normal distribution, and with the means +dnorm, i.e. assuming normal distribution, and with the means predicted by the degradation model, and the standard deviations predicted by the error model.

-
# S3 method for mkinfit
-logLik(object, ...)
- -

Arguments

- - - - - - - - - - -
object

An object of class mkinfit.

...

For compatibility with the generic method

- -

Value

- -

An object of class logLik with the number of estimated +

+
# S3 method for mkinfit
+logLik(object, ...)
+
+ +
+

Arguments

+
object
+

An object of class mkinfit.

+
...
+

For compatibility with the generic method

+
+
+

Value

+

An object of class logLik with the number of estimated parameters (degradation model parameters plus variance model parameters) as attribute.

-

Details

- +
+
+

Details

The total number of estimated parameters returned with the value of the likelihood is calculated as the sum of fitted degradation model parameters and the fitted error model parameters.

-

See also

- -

Compare the AIC of columns of mmkin objects using -AIC.mmkin.

-

Author

- +
+
+

See also

+

Compare the AIC of columns of mmkin objects using +AIC.mmkin.

+
+
+

Author

Johannes Ranke

+
-

Examples

-
- # \dontrun{ - sfo_sfo <- mkinmod( - parent = mkinsub("SFO", to = "m1"), - m1 = mkinsub("SFO") - ) -
#> Temporary DLL for differentials generated and loaded
d_t <- subset(FOCUS_2006_D, value != 0) - f_nw <- mkinfit(sfo_sfo, d_t, quiet = TRUE) # no weighting (weights are unity) - f_obs <- update(f_nw, error_model = "obs") - f_tc <- update(f_nw, error_model = "tc") - AIC(f_nw, f_obs, f_tc) -
#> df AIC -#> f_nw 5 204.4486 -#> f_obs 6 205.8727 -#> f_tc 6 141.9656
# } - -
+
+

Examples

+

+  # \dontrun{
+  sfo_sfo <- mkinmod(
+    parent = mkinsub("SFO", to = "m1"),
+    m1 = mkinsub("SFO")
+  )
+#> Temporary DLL for differentials generated and loaded
+  d_t <- subset(FOCUS_2006_D, value != 0)
+  f_nw <- mkinfit(sfo_sfo, d_t, quiet = TRUE) # no weighting (weights are unity)
+  f_obs <- update(f_nw, error_model = "obs")
+  f_tc <- update(f_nw, error_model = "tc")
+  AIC(f_nw, f_obs, f_tc)
+#>       df      AIC
+#> f_nw   5 204.4486
+#> f_obs  6 205.8727
+#> f_tc   6 141.9656
+  # }
+
+
+
+
-
- - + + -- cgit v1.2.1