linearmodels.panel.results.PanelModelComparison

class linearmodels.panel.results.PanelModelComparison(results: list[PanelEffectsResults | PanelResults | RandomEffectsResults] | dict[str, PanelEffectsResults | PanelResults | RandomEffectsResults], *, precision: str = 'tstats', stars: bool = False)[source]

Comparison of multiple models

Parameters:
results: list[PanelEffectsResults | PanelResults | RandomEffectsResults] | dict[str, PanelEffectsResults | PanelResults | RandomEffectsResults]

Set of results to compare. If a dict, the keys will be used as model names.

precision: str = 'tstats'

Estimator precision estimator to include in the comparison output. Default is “tstats”.

stars: bool = False

Add stars based on the p-value of the coefficient where 1, 2 and 3-stars correspond to p-values of 10%, 5% and 1%, respectively.

Methods

Properties

cov_estimator

Covariance estimator descriptions

estimator_method

Estimation methods

f_statistic

F-statistics and P-values

nobs

Parameters for all models

params

Parameters for all models

pvalues

Parameter p-vals for all models

rsquared

Coefficients of determination (R**2)

rsquared_between

Coefficients of determination (R**2)

rsquared_overall

Coefficients of determination (R**2)

rsquared_within

Coefficients of determination (R**2)

std_errors

Parameter standard errors for all models

summary

Model estimation summary.

tstats

Parameter t-stats for all models