rmodel

rmodel: simple statistical models that follow R-like naming conventions


Keywords
R, models, feel, but, Python, structures
License
BSD-3-Clause
Install
pip install rmodel==0.0.2

Documentation

rmodel

UI for an R-like experience of simple statistical modelling, but in Python.

installation

pip3 install rmodel

or git-clone it.

example

Install matplotlib separately first with

pip3 install matplotlib

Then, to fit to a second order polynomial, simply do:

from rmodel.polyfit import polyfit

P = polyfit(x=[1,2,3,4], y=[1.2, 3.5, 4.4, 5.5], deg=2)
P.plot()

The model stores the data and can provide fits, coefficients, results, and errors quite easily:

P.fitted()
P.coef
P.res()
P.error_l1()
P.average_l1()