Module Expr Str Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpAdd Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad keyword Num keyword Num Assign NameStore Call NameLoad BinOpMult Num NameLoad Expr Call NameLoad NameLoad BinOpDiv BinOpSub BinOpMult Num NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore BinOpAdd BinOpMult Num NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice Num NameLoad keyword Num keyword Num decorator_list FunctionDef arguments args defaults body 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 Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword Num decorator_list Expr Call NameLoad Expr Call NameLoad
N/A N/A 
Created on Tue May 27 13:26:01 2014

Author: Josef Perktold
License: BSD-3

 N/A numpy np numpy.testing assert_allclose assert_equal scipy stats statsmodels.regression.linear_model OLS statsmodels.tools.transform_model StandardizeTransform test_standardize1 N/A N/A N/A N/A N/A N/A N/A N/A np random seed 123 N/A x N/A 1 N/A N/A N/A np random randn 5 4 N/A transf N/A StandardizeTransform x N/A xs1 N/A transf x N/A N/A assert_allclose N/A transf mean N/A N/A x mean 0 rtol 1e-13 N/A N/A assert_allclose N/A transf scale N/A N/A x std 0 ddof 1 rtol 1e-13 N/A xs2 N/A N/A stats zscore x ddof 1 N/A N/A assert_allclose xs1 xs2 rtol 1e-13 atol 1e-20 N/A xs4 N/A transf N/A 2 x N/A N/A assert_allclose xs4 N/A N/A N/A 2 x N/A transf mean N/A transf scale rtol 1e-13 atol 1e-20 N/A x2 N/A N/A 2 x N/A N/A N/A np random randn 4 N/A transf2 N/A StandardizeTransform x2 N/A xs3 N/A transf2 x2 N/A N/A assert_allclose xs3 xs1 rtol 1e-13 atol 1e-20 N/A x5 N/A N/A np column_stack N/A N/A N/A np ones N/A N/A x shape N/A 0 x N/A transf5 N/A StandardizeTransform x5 N/A xs5 N/A transf5 x5 N/A N/A assert_equal N/A transf5 const_idx 0 N/A N/A assert_equal N/A xs5 N/A N/A N/A 0 N/A N/A np ones N/A N/A x shape N/A 0 N/A N/A assert_allclose N/A xs5 N/A N/A N/A 1 xs1 rtol 1e-13 atol 1e-20 N/A test_standardize_ols N/A N/A N/A N/A 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 N/A res2 N/A N/A N/A OLS endog exog fit N/A transf N/A StandardizeTransform exog N/A exog_st N/A transf exog N/A res1 N/A N/A N/A OLS endog exog_st fit N/A params N/A N/A transf transform_params N/A res1 params N/A N/A assert_allclose params N/A res2 params rtol 1e-13 N/A N/A N/A test_standardize1 N/A N/A test_standardize_ols