jmpy.modeling package

Submodules

jmpy.modeling.lm module

jmpy.modeling.lm.check_estimates(model, data, model_type='ols', sample_rate=0.8, iterations=100)[source]

Function to quantify the variation in parameter estimates of a model

jmpy.modeling.lm.fit(model, data, model_type='ols', sample_rate=0.8, figsize=(10, 10), fontsize=12)[source]

Linear regression model with visualization of fitting parameters

Parameters:
  • model – patsy model specification
  • data – padas dataframe of results
  • model_type – ols or rlm (ordinary least squares or robust linear model)
  • sample_rate – float (range of 0 to 1). partions traning and testing set
  • figsize – figure size of output
  • fontsize – fonsize for regression output
Returns:

tuple of axes.

Module contents