Skip to content

deFit

Fitting Differential Equations to Time Series Data

v0.3.0 · Oct 18, 2024 · GPL (>= 3)

Description

Use numerical optimization to fit ordinary differential equations (ODEs) to time series data to examine the dynamic relationships between variables or the characteristics of a dynamical system. It can now be used to estimate the parameters of ODEs up to second order, and can also apply to multilevel systems. See <https://github.com/yueqinhu/defit> for details.

Downloads

CRAN

296

Last 30 days

15872nd

677

Last 90 days

2.6K

Last year

Trend: +69.1% (30d vs prior 30d)

r2u CRAN

1

Last 30 days

25

Last 90 days

90

Last year

Trend: -88.9% (30d vs prior 30d)

autoCRAN

5

Last 7 days

17

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

3,355

Files

38

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,090 (62.3%)Tests 807 (24.1%)Docs 458 (13.7%)

API

Exported functions

5

Internal functions

28

Recent export changes

v0.3.0+4 Scale_within, Solver_MultiBiFirst_func, Solver_MultiUniSecond_func +1 more  −1 scale_within
v0.2.0+1 scale_within

Testing & CI

Has tests

Yes

Test-to-code ratio

0.39

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.50

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

5

First release

2023-02-06

Latest release

2024-10-18

Avg cadence

67 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v0.1.0: 1,033 LOCv0.1.2: 1,070 LOCv0.2.0: 2,414 LOCv0.2.1: 2,432 LOCv0.3.0: 3,355 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies deSolve ggplot2 R6 deFit

Version History

6 tracked
new 0.3.0 Mar 10, 2026
updated 0.3.0 ← 0.2.1 diff Oct 17, 2024
updated 0.2.1 ← 0.2.0 diff Jun 28, 2023
updated 0.2.0 ← 0.1.2 diff Apr 12, 2023
updated 0.1.2 ← 0.1.0 diff Feb 14, 2023
new 0.1.0 Feb 5, 2023