Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cosinor_goodness_of_fit

Goodness of Fit of Cosinor


Description

Goodness of fit of a cosinor from data that has multiple collections at different timepoints or from multiple cycles. The RSS is partitioned into pure error (SSPE) and lack of fit (SSLOF). An F-test compares the SSPE and SSLOF to detect appropriateness of model.

SSLOF = RSS - SSPE

SSPE = ∑_{i} ∑_{l} ( Y_{il} - \overline{Y}_{i} )^2

The fitted values for each time point are:

\overline{Y}_{i} = \frac{ ∑_{l} Y_{il} }{ n_{i}}

Usage

cosinor_goodness_of_fit(object, level = 0.95, ...)

Arguments

object

requires cosinor model generated with card::cosinor to calculate statistics.

level

confidence level desired

...

additional parameters may be needed for extensibility

Value

f-statistic as result of goodness of fit


card

Cardiovascular and Autonomic Research Design

v0.1.0
MIT + file LICENSE
Authors
Anish S. Shah [aut, cre, cph] (<https://orcid.org/0000-0002-9729-1558>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.