Welcome to deFit
Fitting Differential Equations to Time Series Data ( deFit ).
Overview
What is deFit?
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.
Features
- Fit ordinary differential equation models to time series data
- Report model parameter estimations, standard errors, R-squared, and root mean standard error
- Plot raw data points and fitted lines
- Support ordinary differential equation models up to second order
- deFit can run in Python and R environments
1.2 First impression in Python
To get a first impression of how deFit works in simulation, consider the following example of a differential equational model. The figure below contains a graphical representation of the model that we want to fit.
import defit
import pandas as pd
df1 = pd.read_csv('defit/data/example1.csv')
model1 = '''
x =~ myX
time =~ myTime
x(2) ~ x + x(1)
'''
result1 = defit.defit(data=df1,model=model1)
2 Navigation
Metadata
Release files for deFit 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| defit-0.3.0.tar.gz | 353.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deFit-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 714.2 kB
Release files / defit-0.3.0.tar.gz
| Download URL | defit-0.3.0.tar.gz |
|---|---|
| Size | 353.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a907ca889e7d9cbbf2dd26b26fbad1cd2d41ac73aa40e8d12a3d1d1634dce60
|
|
BLAKE2b-256 checksum How to use checksums |
19bd7a5548b978d3efdb075b144588069fdb7ca37866b57fda46619ce2d4128d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Release files / deFit-0.3.0-py3-none-any.whl
| Download URL | deFit-0.3.0-py3-none-any.whl |
|---|---|
| Size | 361.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e6ab5c55c76bab5665e83dca369e669cbc733c7296af25d90693a669ddce9b7
|
|
BLAKE2b-256 checksum How to use checksums |
9615100a4fc78c452e75f9068bd43acdeec6e9a58333e1fa025bf4147eed1b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|