Module Expr Str Import alias identifier ImportFrom alias alias ImportFrom alias alias alias If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad Print Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Num Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign NameStore Call NameLoad NameLoad ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Print SubscriptLoad NameLoad Index ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign NameStore ListLoad Num Num Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ImportFrom alias Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr ListLoad Str Str Str Str Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore BinOpAdd Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ImportFrom alias Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num Num Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad BinOpSub NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Num Print AttributeLoad NameLoad attr Print NameLoad Print AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad BinOpSub NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Slice Num attr Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad BinOpSub NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Expr Call NameLoad SubscriptLoad NameLoad Slice Num AttributeLoad NameLoad attr keyword Num Print AttributeLoad NameLoad attr Print NameLoad Print AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ImportFrom alias Import alias identifier Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Print Str Print NameLoad Print AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Num keyword SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Print Str Print NameLoad Print AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print NameLoad Print NameLoad
N/A N/A 
Created on Fri May 30 22:56:57 2014

Author: Josef Perktold
License: BSD-3

 N/A numpy np numpy.testing assert_allclose assert_raises statsmodels.base._constraints TransformRestriction transform_params_constraint fit_constrained N/A N/A __name__ __main__ N/A N/A R N/A N/A np array N/A N/A 1 1 0 0 0 N/A 0 0 1 -1 0 N/A N/A k_constr k_vars N/A R shape N/A m N/A N/A N/A np eye k_vars N/A N/A N/A R T dot N/A N/A N/A N/A np linalg pinv R T N/A N/A evals evecs N/A N/A N/A np linalg eigh m N/A L N/A evecs N/A N/A N/A k_constr N/A T N/A evecs N/A N/A N/A k_constr N/A N/A N/A N/A T T dot N/A N/A np eye k_vars N/A tr N/A N/A np column_stack N/A T N/A R T N/A q N/A 2 0 N/A tr0 N/A TransformRestriction R q N/A p_reduced N/A 1 1 1 N/A N/A assert_allclose N/A N/A tr0 reduce N/A N/A tr0 expand p_reduced p_reduced rtol 1e-14 N/A p N/A N/A tr0 expand p_reduced N/A N/A assert_allclose N/A N/A R dot p q rtol 1e-14 N/A R N/A N/A np array N/A N/A 1 1 0 0 0 N/A 0 0 1 -1 0 N/A 0 0 1 0 -1 N/A q N/A N/A np zeros N/A N/A R shape N/A 0 N/A tr1 N/A TransformRestriction R q N/A p N/A N/A tr1 expand N/A 1 1 N/A Ri N/A N/A np array N/A N/A 1 1 0 0 0 N/A 0 0 1 -1 0 N/A 0 0 1 -2 0 N/A tri N/A TransformRestriction Ri N/A 0 1 1 N/A p N/A N/A tri expand N/A 1 1 N/A N/A p N/A N/A 2 3 N/A Ri2 N/A N/A np array N/A N/A 0 0 0 1 0 N/A 0 0 1 -1 0 N/A 0 0 1 -2 0 N/A q N/A 1 1 N/A N/A assert_raises ValueError TransformRestriction Ri2 q N/A N/A N/A N/A np random seed 1 N/A x N/A N/A N/A np random randn 10 5 N/A xr N/A N/A tr1 reduce x N/A x2 N/A N/A tr1 expand xr patsy DesignInfo N/A names N/A N/A a b c d split N/A LC N/A N/A N/A DesignInfo names linear_constraint a + b = 0 N/A LC N/A N/A N/A DesignInfo names linear_constraint N/A a + b = 0 a + 2*c = 1 b-a c-a d-a N/A N/A r_matrix q_matrix N/A N/A LC coefs N/A LC constants N/A N/A N/A N/A np random seed 123 N/A nobs 20 N/A x N/A 1 N/A N/A N/A np random randn nobs 4 N/A exog N/A N/A np column_stack N/A N/A N/A np ones nobs x N/A endog N/A N/A N/A exog sum 1 N/A N/A N/A np random randn nobs statsmodels.regression.linear_model OLS N/A res2 N/A N/A N/A OLS endog exog fit N/A transf N/A TransformRestriction N/A N/A 0 0 0 1 1 N/A N/A N/A N/A res2 params N/A -2 sum N/A exog_st N/A N/A transf reduce exog N/A res1 N/A N/A N/A OLS endog exog_st fit N/A res1 N/A N/A N/A OLS N/A endog N/A N/A exog dot N/A N/A N/A transf constant squeeze exog_st fit N/A params N/A N/A N/A N/A transf expand N/A res1 params squeeze N/A N/A assert_allclose params N/A res2 params rtol 1e-13 N/A N/A res2 params N/A params N/A N/A res1 params N/A res3_ols N/A N/A N/A OLS N/A endog N/A exog N/A N/A N/A -1 N/A exog N/A N/A N/A -2 fit N/A transf3 N/A TransformRestriction N/A N/A 0 0 0 1 0 N/A 0 0 0 0 1 N/A 0 1 N/A exog3_st N/A N/A transf3 reduce exog N/A res3 N/A N/A N/A OLS endog exog3_st fit N/A res3 N/A N/A N/A OLS N/A endog N/A N/A exog dot N/A N/A N/A transf3 constant squeeze exog3_st fit N/A params N/A N/A N/A N/A transf3 expand N/A res3 params squeeze N/A N/A assert_allclose N/A params N/A -2 N/A res3_ols params rtol 1e-13 N/A N/A res3 params N/A params N/A N/A res3_ols params N/A N/A res3_ols bse N/A cov_params3 N/A N/A N/A N/A N/A transf3 transf_mat dot N/A N/A res3 cov_params dot N/A N/A transf3 transf_mat T N/A bse3 N/A N/A np sqrt N/A N/A np diag cov_params3 N/A bse3 N/A tp N/A transform_params_constraint N/A res2 params N/A res2 normalized_cov_params N/A transf3 R N/A transf3 q N/A tp N/A transform_params_constraint N/A res2 params N/A N/A res2 cov_params N/A transf3 R N/A transf3 q statsmodels.discrete.discrete_model Poisson N/A statsmodels.api sm N/A rand_data N/A N/A N/A N/A sm datasets randhie load N/A rand_exog N/A N/A N/A N/A N/A rand_data exog view float reshape N/A len N/A rand_data exog -1 N/A rand_exog N/A N/A sm add_constant rand_exog prepend False N/A poisson_mod0 N/A N/A sm Poisson N/A rand_data endog rand_exog N/A poisson_res0 N/A N/A poisson_mod0 fit method newton N/A R N/A N/A np zeros N/A 2 10 N/A N/A R N/A N/A 0 -2 1 N/A N/A R N/A N/A 1 -1 1 N/A transfp N/A TransformRestriction R N/A 0 1 N/A poisson_mod N/A N/A sm Poisson N/A rand_data endog N/A rand_exog N/A N/A N/A -2 N/A poisson_res N/A N/A poisson_mod fit method newton offset N/A N/A rand_exog dot N/A N/A N/A transfp constant squeeze N/A exogp_st N/A N/A transfp reduce rand_exog N/A poisson_modr N/A N/A sm Poisson N/A rand_data endog exogp_st N/A poisson_resr N/A N/A poisson_modr fit method newton N/A paramsp N/A N/A N/A N/A transfp expand N/A poisson_resr params squeeze N/A 
Poisson N/A paramsp N/A N/A poisson_res params N/A poisson_mod0 N/A N/A sm Poisson N/A rand_data endog rand_exog N/A poisson_res0 N/A N/A poisson_mod0 fit method newton N/A tp N/A transform_params_constraint N/A poisson_res0 params N/A N/A poisson_res0 cov_params N/A transfp R N/A transfp q N/A cov_params3 N/A N/A N/A N/A N/A transf3 transf_mat dot N/A N/A res3 cov_params dot N/A N/A transf3 transf_mat T N/A bse3 N/A N/A np sqrt N/A N/A np diag cov_params3 N/A poisson_mod N/A N/A sm Poisson N/A rand_data endog N/A rand_exog N/A N/A N/A -2 offset N/A rand_exog N/A N/A N/A -1 N/A poisson_res N/A N/A poisson_mod fit method newton N/A exogp_st N/A N/A transfp reduce rand_exog N/A poisson_modr N/A N/A sm Poisson N/A rand_data endog exogp_st offset N/A N/A rand_exog dot N/A N/A N/A transfp constant squeeze N/A poisson_resr N/A N/A poisson_modr fit method newton N/A paramsp N/A N/A N/A N/A transfp expand N/A poisson_resr params squeeze N/A 
Poisson N/A paramsp N/A N/A poisson_resr params N/A tp N/A transform_params_constraint N/A poisson_res0 params N/A N/A poisson_res0 cov_params N/A transfp R N/A transfp q N/A cov_paramsp N/A N/A N/A N/A N/A transfp transf_mat dot N/A N/A poisson_resr cov_params dot N/A N/A transfp transf_mat T N/A bsep N/A N/A np sqrt N/A N/A np diag cov_paramsp N/A bsep N/A N/A p cov res_r N/A fit_constrained poisson_mod0 N/A transfp R N/A transfp q N/A se N/A N/A np sqrt N/A N/A np diag cov N/A p N/A se