Module Expr Str ImportFrom alias alias alias alias alias Import alias identifier ImportFrom alias Import alias identifier ImportFrom alias alias Import alias identifier Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias identifier Import alias identifier ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str If CompareNotEq Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Call NameLoad NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Num Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Str BinOpMod NameLoad Dict Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str If CompareNotEq SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr ListComp SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpSub SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad vararg kwarg body Expr BinOpMod Str Dict Str AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Return ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Return ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Continue Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad AugAssignAdd NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpPow NameLoad Num AugAssignAdd NameStore BinOpMult NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignDiv NameStore BinOpDiv BinOpMult NameLoad BinOpSub NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num AugAssignAdd NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Continue Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num AugAssignAdd NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad TupleLoad NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num AugAssignDiv NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr attr Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad TupleLoad NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore BinOpDiv BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignMult NameStore AttributeLoad NameLoad attr AugAssignMult NameStore AttributeLoad NameLoad attr AugAssignMult NameStore AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign NameStore Num If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs NameLoad NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str body Assign NameStore BinOpAdd NameLoad AttributeLoad NameLoad attr orelse If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIs NameLoad NameLoad body Assign NameStore NameLoad If Call NameLoad NameLoad Str body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Num Num Str NameLoad Num body If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num orelse If UnaryOpNot CompareGtE NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str ListLoad ListLoad ListLoad ListLoad If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareEq NameLoad Str body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Break AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareLt NameLoad NameLoad BoolOpOr CompareGt NameLoad Num CompareEq AttributeLoad NameLoad attr NameLoad body Break If BoolOpAnd AttributeLoad NameLoad attr CompareEq BinOpMod NameLoad NameLoad Num CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num If CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad BinOpDiv NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareLt NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Return Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Import alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad BinOpPow NameLoad Num Assign NameStore BinOpDiv SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num NameLoad Slice NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub Num Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad NameLoad body Expr Str Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIn Str NameLoad body AugAssignMult NameStore NameLoad If CompareIn Str NameLoad body AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad ExtSlice Slice Index NameLoad If CompareIsNot NameLoad NameLoad body ImportFrom alias Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body ImportFrom alias Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore BinOpAdd Str NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot BoolOpAnd Call NameLoad NameLoad Str Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str Str Str If CompareNotIn NameLoad NameLoad body Assign NameStore BinOpAdd Str Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str If CompareNotIn NameLoad NameLoad body Assign NameStore BinOpAdd Str Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad AugAssignSub SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body ImportFrom alias Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr BinOpMod NameLoad Dict Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body ImportFrom alias Return Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list Assign AttributeStore NameLoad attr BinOpMod NameLoad Dict Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad body ImportFrom alias Return Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list Assign AttributeStore NameLoad attr BinOpMod NameLoad Dict Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Num BinOpDiv NameLoad Num If CompareIs NameLoad NameLoad body Assign NameStore BinOpSub AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad BinOpMult NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Index NameLoad BinOpMult NameLoad SubscriptLoad NameLoad Index NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr TupleLoad Str ListLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr TupleLoad Str NameLoad TupleLoad Str ListLoad AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad TupleLoad Str ListLoad Call NameLoad NameLoad TupleLoad Str ListLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str ListLoad Call NameLoad NameLoad TupleLoad Str ListLoad Call NameLoad NameLoad TupleLoad Str ListLoad BinOpMod Str Call AttributeLoad NameLoad attr NameLoad TupleLoad Str ListLoad BinOpMod Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str TupleLoad Str ListLoad BinOpMod Str AttributeLoad NameLoad attr TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad TupleLoad Str ListLoad BinOpMod Str NameLoad TupleLoad Str ListLoad BinOpMod Str NameLoad Assign NameStore ListLoad TupleLoad Str ListLoad BinOpMod Str NameLoad TupleLoad Str ListLoad BinOpMod Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad NameLoad body Expr Str If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Expr Str ImportFrom alias identifier Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore BinOpDiv BinOpMult SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num BinOpPow AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad BinOpPow BinOpSub SubscriptLoad NameLoad ExtSlice Index SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad ExtSlice Index SubscriptLoad NameLoad Index Num Slice Num attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad AugAssignDiv NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index CompareEq NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index CompareEq NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Import alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Num Num NameLoad body Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult BinOpSub Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ClassDef bases NameLoad body Assign NameStore BinOpAdd Str BinOpMod NameLoad Dict Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad kwarg body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad CompareGt NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword Num Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Num Num Str body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore BinOpAdd Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str ImportFrom alias identifier If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Dict Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num For TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body Continue If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpDiv Num BinOpAdd Num Call AttributeLoad NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ClassDef bases NameLoad body Assign NameStore BinOpAdd Str BinOpMod NameLoad Dict Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad kwarg body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad BinOpAdd AttributeLoad NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore BinOpMult Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMult Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad CompareEq NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Num If CompareEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad BinOpFloorDiv Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Num Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad Assign NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad AugAssignSub NameStore BinOpDiv BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad BinOpFloorDiv Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Num Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpFloorDiv Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad BinOpFloorDiv SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Num NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad Num AttributeLoad NameLoad attr AugAssignSub NameStore BinOpDiv BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad BinOpMult NameLoad NameLoad BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad Num Num Str body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore BinOpAdd Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str ImportFrom alias identifier If CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Dict Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpDiv SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Slice Num NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num NameLoad Assign NameStore ListComp SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad BinOpDiv Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad BinOpSub Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Num Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad BinOpFloorDiv Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore BinOpDiv NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpSub NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ImportFrom alias alias alias alias alias alias alias alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Dict body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr Return BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr ImportFrom alias Assign NameStore ListLoad SubscriptLoad NameLoad Index SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str Str Str Str Assign NameStore CompareNotEq Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num Num Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr Return BinOpMult Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Num BinOpDiv NameLoad Num Assign NameStore BinOpSub AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore ListLoad TupleLoad Str ListLoad AttributeLoad NameLoad attr TupleLoad Str ListLoad NameLoad TupleLoad Str ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str ImportFrom alias alias alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Str Num If CompareGt NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword ListLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareGt NameLoad Num body For NameStore Call NameLoad NameLoad body Assign NameStore TupleLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice Index NameLoad Assign NameStore Call NameLoad NameLoad keyword SubscriptLoad NameLoad Index NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad Str SubscriptLoad NameLoad Index NameLoad Str Str Str BinOpMod Str BinOpSub Num BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad Str SubscriptLoad NameLoad Index NameLoad Str Str Str BinOpMod Str BinOpSub Num BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad orelse Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list
N/A N/A 
Procedures for fitting marginal regression models to dependent data
using Generalized Estimating Equations.

References
----------
KY Liang and S Zeger. "Longitudinal data analysis using
generalized linear models". Biometrika (1986) 73 (1): 13-22.

S Zeger and KY Liang. "Longitudinal Data Analysis for Discrete and
Continuous Outcomes". Biometrics Vol. 42, No. 1 (Mar., 1986),
pp. 121-130

A Rotnitzky and NP Jewell (1990). "Hypothesis testing of regression
parameters in semiparametric generalized linear models for cluster
correlated data", Biometrika, 77, 485-497.

Xu Guo and Wei Pan (2002). "Small sample performance of the score
test in GEE".
http://www.sph.umn.edu/faculty1/wp-content/uploads/2012/11/rr2002-013.pdf

LA Mancl LA, TA DeRouen (2001). A covariance estimator for GEE with
improved small-sample properties.  Biometrics. 2001 Mar;57(1):126-34.
 statsmodels.compat.python iterkeys range lrange lzip zip N/A numpy np scipy stats N/A pandas pd statsmodels.tools.decorators cache_readonly resettable_cache N/A statsmodels.base.model base N/A statsmodels.regression.linear_model lm N/A statsmodels.base.wrapper wrap statsmodels.genmod families statsmodels.genmod cov_struct cov_structs N/A statsmodels.genmod.families.varfuncs varfuncs statsmodels.genmod.families.links Link statsmodels.tools.sm_exceptions ConvergenceWarning IterationLimitWarning N/A warnings statsmodels.graphics._regressionplots_doc _plot_added_variable_doc _plot_partial_residuals_doc _plot_ceres_residuals_doc ParameterConstraint N/A object N/A N/A 
    A class for managing linear equality constraints for a parameter
    vector.
     __init__ N/A N/A self lhs rhs exog N/A N/A N/A 
        Parameters
        ----------
        lhs : ndarray
           A q x p matrix which is the left hand side of the
           constraint lhs * param = rhs.  The number of constraints is
           q >= 1 and p is the dimension of the parameter vector.
        rhs : ndarray
          A 1-dimensional vector of length q which is the right hand
          side of the constraint equation.
        exog : ndarray
          The n x p exognenous data for the full model.
         N/A rhs N/A N/A np atleast_1d N/A N/A rhs squeeze N/A N/A N/A rhs ndim 1 N/A N/A N/A ValueError The right hand side of the constraint must be a vector. N/A N/A N/A len rhs N/A N/A lhs shape N/A 0 N/A N/A N/A ValueError The number of rows of the left hand side constraint matrix L must equal the length of the right hand side constraint vector R. N/A N/A self lhs lhs N/A N/A self rhs rhs N/A N/A lhs_u lhs_s lhs_vt N/A N/A N/A np linalg svd N/A lhs T full_matrices 1 N/A N/A self lhs0 N/A lhs_u N/A N/A N/A N/A len lhs_s N/A N/A self lhs1 N/A lhs_u N/A N/A N/A 0 N/A len lhs_s N/A N/A self lhsf N/A N/A np hstack N/A N/A self lhs0 N/A self lhs1 N/A N/A self param0 N/A N/A np dot N/A self lhs1 N/A N/A N/A np dot lhs_vt N/A self rhs lhs_s N/A N/A self _offset_increment N/A N/A np dot exog N/A self param0 N/A N/A self orig_exog exog N/A N/A self exog_fulltrans N/A N/A np dot exog N/A self lhsf N/A offset_increment N/A N/A self N/A N/A N/A 
        Returns a vector that should be added to the offset vector to
        accommodate the constraint.

        Parameters
        ----------
        exog : array-like
           The exogeneous data for the model.
         N/A N/A self _offset_increment N/A reduced_exog N/A N/A self N/A N/A N/A 
        Returns a linearly transformed exog matrix whose columns span
        the constrained model space.

        Parameters
        ----------
        exog : array-like
           The exogeneous data for the model.
         N/A N/A N/A self exog_fulltrans N/A N/A N/A 0 N/A N/A N/A self lhs0 shape N/A 1 N/A restore_exog N/A N/A self N/A N/A N/A 
        Returns the full exog matrix before it was reduced to
        satisfy the constraint.
         N/A N/A self orig_exog N/A unpack_param N/A N/A self params N/A N/A N/A 
        Converts the parameter vector `params` from reduced to full
        coordinates.
         N/A N/A N/A self param0 N/A N/A np dot N/A self lhs0 params N/A unpack_cov N/A N/A self bcov N/A N/A N/A 
        Converts the covariance matrix `bcov` from reduced to full
        coordinates.
         N/A N/A N/A np dot N/A self lhs0 N/A N/A np dot bcov N/A N/A self lhs0 T N/A N/A N/A _gee_init_doc 
    Marginal regression model fit using Generalized Estimating Equations.

    GEE can be used to fit Generalized Linear Models (GLMs) when the
    data have a grouped structure, and the observations are possibly
    correlated within groups but not between groups.

    Parameters
    ----------
    endog : array-like
        1d array of endogenous values (i.e. responses, outcomes,
        dependent variables, or 'Y' values).
    exog : array-like
        2d array of exogeneous values (i.e. covariates, predictors,
        independent variables, regressors, or 'X' values). A `nobs x
        k` array where `nobs` is the number of observations and `k` is
        the number of regressors. An intercept is not included by
        default and should be added by the user. See
        `statsmodels.tools.add_constant`.
    groups : array-like
        A 1d array of length `nobs` containing the group labels.
    time : array-like
        A 2d array of time (or other index) values, used by some
        dependence structures to define similarity relationships among
        observations within a cluster.
    family : family class instance
%(family_doc)s
    cov_struct : CovStruct class instance
        The default is Independence.  To specify an exchangeable
        structure use cov_struct = Exchangeable().  See
        statsmodels.genmod.cov_struct.CovStruct for more
        information.
    offset : array-like
        An offset to be included in the fit.  If provided, must be
        an array whose length is the number of rows in exog.
    dep_data : array-like
        Additional data passed to the dependence structure.
    constraint : (ndarray, ndarray)
        If provided, the constraint is a tuple (L, R) such that the
        model parameters are estimated under the constraint L *
        param = R, where L is a q x p matrix and R is a
        q-dimensional vector.  If constraint is provided, a score
        test is performed to compare the constrained model to the
        unconstrained model.
    update_dep : bool
        If true, the dependence parameters are optimized, otherwise
        they are held fixed at their starting values.
    weights : array-like
        An array of weights to use in the analysis.  The weights must
        be constant within each group.  These correspond to
        probability weights (pweights) in Stata.
    %(extra_params)s

    See Also
    --------
    statsmodels.genmod.families.family
    :ref:`families`
    :ref:`links`

    Notes
    -----
    Only the following combinations make sense for family and link ::

                   + ident log logit probit cloglog pow opow nbinom loglog logc
      Gaussian     |   x    x                        x
      inv Gaussian |   x    x                        x
      binomial     |   x    x    x     x       x     x    x           x      x
      Poission     |   x    x                        x
      neg binomial |   x    x                        x          x
      gamma        |   x    x                        x

    Not all of these link functions are currently available.

    Endog and exog are references so that if the data they refer
    to are already arrays and these arrays are changed, endog and
    exog will change.

    The "robust" covariance type is the standard "sandwich estimator"
    (e.g. Liang and Zeger (1986)).  It is the default here and in most
    other packages.  The "naive" estimator gives smaller standard
    errors, but is only correct if the working correlation structure
    is correctly specified.  The "bias reduced" estimator of Mancl and
    DeRouen (Biometrics, 2001) reduces the downard bias of the robust
    estimator.

    The robust covariance provided here follows Liang and Zeger (1986)
    and agrees with R's gee implementation.  To obtain the robust
    standard errors reported in Stata, multiply by sqrt(N / (N - g)),
    where N is the total sample size, and g is the average group size.

    Examples
    --------
    %(example)s
 N/A _gee_family_doc         The default is Gaussian.  To specify the binomial
        distribution use `family=sm.family.Binomial()`. Each family
        can take a link instance as an argument.  See
        statsmodels.family.family for more information. N/A _gee_ordinal_family_doc         The only family supported is `Binomial`.  The default `Logit`
        link may be replaced with `probit` if desired. N/A _gee_nominal_family_doc         The default value `None` uses a multinomial logit family
        specifically designed for use with GEE.  Setting this
        argument to a non-default value is not currently supported. N/A _gee_fit_doc 
    Fits a marginal regression model using generalized estimating
    equations (GEE).

    Parameters
    ----------
    maxiter : integer
        The maximum number of iterations
    ctol : float
        The convergence criterion for stopping the Gauss-Seidel
        iterations
    start_params : array-like
        A vector of starting values for the regression
        coefficients.  If None, a default is chosen.
    params_niter : integer
        The number of Gauss-Seidel updates of the mean structure
        parameters that take place prior to each update of the
        dependence structure.
    first_dep_update : integer
        No dependence structure updates occur before this
        iteration number.
    cov_type : string
        One of "robust", "naive", or "bias_reduced".
    ddof_scale : scalar or None
        The scale parameter is estimated as the sum of squared
        Pearson residuals divided by `N - ddof_scale`, where N
        is the total sample size.  If `ddof_scale` is None, the
        number of covariates (including an intercept if present)
        is used.
    scaling_factor : scalar
        The estimated covariance of the parameter estimates is
        scaled by this value.  Default is 1, Stata uses N / (N - g),
        where N is the total sample size and g is the average group
        size.

    Returns
    -------
    An instance of the GEEResults class or subclass

    Notes
    -----
    If convergence difficulties occur, increase the values of
    `first_dep_update` and/or `params_niter`.  Setting
    `first_dep_update` to a greater value (e.g. ~10-20) causes the
    algorithm to move close to the GLM solution before attempting
    to identify the dependence structure.

    For the Gaussian family, there is no benefit to setting
    `params_niter` to a value greater than 1, since the mean
    structure parameters converge in one step.
 N/A _gee_results_doc 
    Returns
    -------
    **Attributes**

    cov_params_default : ndarray
        default covariance of the parameter estimates. Is chosen among one
        of the following three based on `cov_type`
    cov_robust : ndarray
        covariance of the parameter estimates that is robust
    cov_naive : ndarray
        covariance of the parameter estimates that is not robust to
        correlation or variance misspecification
    cov_robust_bc : ndarray
        covariance of the parameter estimates that is robust and bias
        reduced
    converged : bool
        indicator for convergence of the optimization.
        True if the norm of the score is smaller than a threshold
    cov_type : string
        string indicating whether a "robust", "naive" or "bias_reduced"
        covariance is used as default
    fit_history : dict
        Contains information about the iterations.
    fittedvalues : array
        Linear predicted values for the fitted model.
        dot(exog, params)
    model : class instance
        Pointer to GEE model instance that called `fit`.
    normalized_cov_params : array
        See GEE docstring
    params : array
        The coefficients of the fitted model.  Note that
        interpretation of the coefficients often depends on the
        distribution family and the data.
    scale : float
        The estimate of the scale / dispersion for the model fit.
        See GEE.fit for more information.
    score_norm : float
        norm of the score at the end of the iterative estimation.
    bse : array
        The standard errors of the fitted GEE parameters.
 N/A _gee_example 
    Logistic regression with autoregressive working dependence:

    >>> import statsmodels.api as sm
    >>> family = sm.families.Binomial()
    >>> va = sm.cov_struct.Autoregressive()
    >>> model = sm.GEE(endog, exog, group, family=family, cov_struct=va)
    >>> result = model.fit()
    >>> print result.summary()

    Use formulas to fit a Poisson GLM with independent working
    dependence:

    >>> import statsmodels.api as sm
    >>> fam = sm.families.Poisson()
    >>> ind = sm.cov_struct.Independence()
    >>> model = sm.GEE.from_formula("y ~ age + trt + base", "subject",
                                 data, cov_struct=ind, family=fam)
    >>> result = model.fit()
    >>> print result.summary()

    Equivalent, using the formula API:

    >>> import statsmodels.api as sm
    >>> import statsmodels.formula.api as smf
    >>> fam = sm.families.Poisson()
    >>> ind = sm.cov_struct.Independence()
    >>> model = smf.gee("y ~ age + trt + base", "subject",
                    data, cov_struct=ind, family=fam)
    >>> result = model.fit()
    >>> print result.summary()
 N/A _gee_ordinal_example 
    Fit an ordinal regression model using GEE, with "global
    odds ratio" dependence:

    >>> import statsmodels.api as sm
    >>> gor = sm.cov_struct.GlobalOddsRatio("ordinal")
    >>> model = sm.OrdinalGEE(endog, exog, groups, cov_struct=gor)
    >>> result = model.fit()
    >>> print result.summary()

    Using formulas:

    >>> import statsmodels.formula.api as smf
    >>> model = smf.ordinal_gee("y ~ x1 + x2", groups, data,
                                    cov_struct=gor)
    >>> result = model.fit()
    >>> print result.summary()
 N/A _gee_nominal_example 
    Fit a nominal regression model using GEE:

    >>> import statsmodels.api as sm
    >>> import statsmodels.formula.api as smf
    >>> gor = sm.cov_struct.GlobalOddsRatio("nominal")
    >>> model = sm.NominalGEE(endog, exog, groups, cov_struct=gor)
    >>> result = model.fit()
    >>> print result.summary()

    Using formulas:

    >>> import statsmodels.api as sm
    >>> model = sm.NominalGEE.from_formula("y ~ x1 + x2", groups,
                     data, cov_struct=gor)
    >>> result = model.fit()
    >>> print result.summary()

    Using the formula API:

    >>> import statsmodels.formula.api as smf
    >>> model = smf.nominal_gee("y ~ x1 + x2", groups, data,
                                cov_struct=gor)
    >>> result = model.fit()
    >>> print result.summary()
 GEE N/A N/A base Model N/A N/A __doc__ N/A     Estimation of marginal regression models using Generalized
    Estimating Equations (GEE).
 N/A _gee_init_doc N/A extra_params family_doc example N/A base _missing_param_doc _gee_family_doc _gee_example N/A cached_means None __init__ N/A N/A self endog exog groups time family cov_struct missing offset exposure dep_data constraint update_dep weights N/A None None None none None None None None True None kwargs N/A N/A N/A N/A family None N/A N/A isinstance N/A family link N/A tuple N/A family safe_links N/A N/A warnings N/A N/A N/A warnings warn N/A The %s link function does not respect the domain of the %s family. N/A N/A N/A N/A family link __class__ __name__ N/A N/A family __class__ __name__ N/A N/A self missing missing N/A N/A self dep_data dep_data N/A N/A self constraint constraint N/A N/A self update_dep update_dep N/A groups N/A N/A np array groups N/A N/A N/A N/A super GEE self __init__ endog exog groups groups time time offset offset exposure exposure weights weights dep_data dep_data missing missing kwargs N/A N/A N/A N/A self _init_keys extend N/A update_dep constraint family cov_struct N/A N/A family None N/A N/A family N/A N/A families Gaussian N/A N/A N/A N/A issubclass N/A family __class__ N/A families Family N/A N/A N/A ValueError GEE: `family` must be a genmod family instance N/A N/A self family family N/A N/A cov_struct None N/A N/A cov_struct N/A N/A cov_structs Independence N/A N/A N/A N/A issubclass N/A cov_struct __class__ N/A cov_structs CovStruct N/A N/A N/A ValueError GEE: `cov_struct` must be a genmod cov_struct instance N/A N/A self cov_struct cov_struct N/A N/A self _offset_exposure None N/A N/A offset None N/A N/A N/A self _offset_exposure N/A N/A N/A self offset copy N/A N/A self offset offset N/A N/A exposure None N/A N/A N/A N/A isinstance N/A N/A self family link N/A N/A families links Log N/A N/A N/A ValueError exposure can only be used with the log link function N/A N/A N/A self _offset_exposure None N/A N/A N/A self _offset_exposure N/A N/A np log exposure N/A N/A N/A self _offset_exposure N/A N/A np log exposure N/A N/A self exposure exposure N/A N/A self constraint None N/A N/A constraint None N/A N/A N/A N/A len constraint 2 N/A N/A N/A ValueError GEE: `constraint` must be a 2-tuple. N/A N/A N/A N/A N/A constraint N/A 0 shape N/A 1 N/A N/A N/A self exog shape N/A 1 N/A N/A N/A ValueError GEE: the left hand side of the constraint must have the same number of columns as the exog matrix. N/A N/A self constraint N/A ParameterConstraint N/A constraint N/A 0 N/A constraint N/A 1 N/A self exog N/A N/A N/A self _offset_exposure None N/A N/A N/A self _offset_exposure N/A N/A N/A self constraint offset_increment N/A N/A N/A self _offset_exposure N/A N/A N/A N/A N/A self constraint offset_increment copy N/A N/A self exog N/A N/A N/A self constraint reduced_exog N/A N/A group_labels ix N/A N/A np unique N/A self groups return_inverse True N/A se N/A N/A pd Series index N/A N/A np arange N/A len ix N/A gb N/A N/A N/A se groupby ix groups N/A dk N/A N/A lb N/A N/A np asarray N/A gb N/A k N/A N/A k lb N/A enumerate group_labels N/A N/A self group_indices N/A dict dk N/A N/A self group_labels group_labels N/A N/A self endog_li N/A N/A self cluster_list N/A self endog N/A N/A self exog_li N/A N/A self cluster_list N/A self exog N/A N/A N/A self weights None N/A N/A N/A self weights_li N/A N/A self cluster_list N/A self weights N/A N/A self weights_li N/A N/A x N/A 0 N/A x N/A self weights_li N/A N/A self weights_li N/A N/A np asarray N/A self weights_li N/A N/A self num_group N/A len N/A self endog_li N/A N/A N/A self time None N/A N/A N/A self time N/A N/A np asarray N/A self time N/A np float64 N/A N/A N/A N/A self time ndim 1 N/A N/A N/A self time N/A N/A self time N/A N/A N/A None N/A N/A self time_li N/A N/A self cluster_list N/A self time N/A N/A N/A self time_li N/A N/A N/A N/A np arange N/A len y dtype N/A np float64 N/A N/A N/A None N/A y N/A self endog_li N/A N/A self time N/A N/A np concatenate N/A self time_li N/A N/A N/A self _offset_exposure None N/A N/A N/A self offset_li N/A N/A self cluster_list N/A self _offset_exposure N/A N/A N/A self offset_li None N/A N/A constraint None N/A N/A N/A N/A self constraint exog_fulltrans_li N/A N/A self cluster_list N/A N/A self constraint exog_fulltrans N/A N/A self family family N/A N/A N/A N/A self cov_struct initialize self N/A group_ns N/A N/A len y N/A y N/A self endog_li N/A N/A self nobs N/A sum group_ns N/A N/A self df_model N/A N/A N/A N/A self exog shape N/A 1 1 N/A N/A self df_resid N/A N/A self nobs N/A N/A N/A self exog shape N/A 1 N/A maxgroup N/A max N/A N/A len x N/A x N/A self endog_li N/A N/A maxgroup 1 N/A N/A N/A self update_dep False N/A from_formula N/A N/A cls formula groups data subset time offset exposure N/A None None None None args kwargs N/A N/A N/A 
        Create a GEE model instance from a formula and dataframe.

        Parameters
        ----------
        formula : str or generic Formula object
            The formula specifying the model
        groups : array-like or string
            Array of grouping labels.  If a string, this is the name
            of a variable in `data` that contains the grouping labels.
        data : array-like
            The data for the model.
        subset : array-like
            An array-like object of booleans, integers, or index
            values that indicate the subset of the data to used when
            fitting the model.
        time : array-like or string
            The time values, used for dependence structures involving
            distances between observations.  If a string, this is the
            name of a variable in `data` that contains the time
            values.
        offset : array-like or string
            The offset values, added to the linear predictor.  If a
            string, this is the name of a variable in `data` that
            contains the offset values.
        exposure : array-like or string
            The exposure values, only used if the link function is the
            logarithm function, in which case the log of `exposure`
            is added to the offset (if any).  If a string, this is the
            name of a variable in `data` that contains the offset
            values.
        %(missing_param_doc)s
        args : extra arguments
            These are passed to the model
        kwargs : extra keyword arguments
            These are passed to the model with one exception. The
            ``eval_env`` keyword is passed to patsy. It can be either a
            :class:`patsy:patsy.EvalEnvironment` object or an integer
            indicating the depth of the namespace to use. For example, the
            default ``eval_env=0`` uses the calling namespace. If you wish
            to use a "clean" environment set ``eval_env=-1``.

        Returns
        -------
        model : GEE model instance

        Notes
        ------
        `data` must define __getitem__ with the keys in the formula
        terms args and kwargs are passed on to the model
        instantiation. E.g., a numpy structured or rec array, a
        dictionary, or a pandas DataFrame.

        This method currently does not correctly handle missing
        values, so missing values should be explicitly dropped from
        the DataFrame before calling this method.
         N/A missing_param_doc N/A base _missing_param_doc N/A N/A N/A type groups str N/A N/A groups N/A data N/A groups N/A N/A N/A type time str N/A N/A time N/A data N/A time N/A N/A N/A type offset str N/A N/A offset N/A data N/A offset N/A N/A N/A type exposure str N/A N/A exposure N/A data N/A exposure N/A model N/A N/A N/A super GEE cls from_formula formula data subset groups time time offset offset exposure exposure args kwargs N/A model N/A classmethod cluster_list N/A N/A self array N/A N/A N/A 
        Returns `array` split into subarrays corresponding to the
        cluster structure.
         N/A N/A N/A array ndim 1 N/A N/A N/A N/A N/A np array N/A array N/A N/A N/A self group_indices N/A k N/A k N/A self group_labels N/A N/A N/A N/A N/A np array N/A array N/A N/A N/A N/A self group_indices N/A k N/A N/A k N/A self group_labels N/A estimate_scale N/A N/A self N/A N/A N/A 
        Returns an estimate of the scale parameter at the current
        parameter value.
         N/A N/A isinstance N/A self family N/A N/A families Binomial N/A families Poisson _Multinomial N/A N/A 1.0 N/A endog N/A self endog_li N/A exog N/A self exog_li N/A cached_means N/A self cached_means N/A nobs N/A self nobs N/A varfunc N/A N/A self family variance N/A scale 0.0 N/A fsum 0.0 N/A i N/A range N/A self num_group N/A N/A N/A N/A len N/A endog N/A i 0 N/A N/A N/A N/A expval _ N/A cached_means N/A i N/A f N/A N/A N/A self weights None N/A N/A self weights_li N/A i 1.0 N/A sdev N/A N/A np sqrt N/A varfunc expval N/A resid N/A N/A N/A endog N/A i expval sdev N/A scale N/A f N/A N/A np sum N/A resid 2 N/A fsum N/A f N/A len N/A endog N/A i N/A scale N/A N/A fsum N/A nobs N/A self ddof_scale N/A float nobs N/A scale N/A mean_deriv N/A N/A self exog lin_pred N/A N/A N/A 
        Derivative of the expected endog with respect to the parameters.

        Parameters
        ----------
        exog : array-like
           The exogeneous data at which the derivative is computed.
        lin_pred : array-like
           The values of the linear predictor.

        Returns
        -------
        The value of the derivative of the expected endog with respect
        to the parameter vector.

        Notes
        -----
        If there is an offset or exposure, it should be added to
        `lin_pred` prior to calling this function.
         N/A idl N/A N/A N/A N/A self family link inverse_deriv lin_pred N/A dmat N/A exog N/A idl N/A N/A N/A None N/A dmat N/A mean_deriv_exog N/A N/A self exog params offset_exposure N/A None N/A N/A 
        Derivative of the expected endog with respect to exog.

        Parameters
        ----------
        exog : array-like
            Values of the independent variables at which the derivative
            is calculated.
        params : array-like
            Parameter values at which the derivative is calculated.
        offset_exposure : array-like, optional
            Combined offset and exposure.

        Returns
        -------
        The derivative of the expected endog with respect to exog.
         N/A lin_pred N/A N/A np dot exog params N/A N/A offset_exposure None N/A N/A lin_pred offset_exposure N/A idl N/A N/A N/A N/A self family link inverse_deriv lin_pred N/A dmat N/A N/A np outer idl params N/A dmat N/A _update_mean_params N/A N/A self N/A N/A N/A 
        Returns
        -------
        update : array-like
            The update vector such that params + update is the next
            iterate when solving the score equations.
        score : array-like
            The current value of the score equations, not
            incorporating the scale parameter.  If desired,
            multiply this vector by the scale parameter to
            incorporate the scale.
         N/A endog N/A self endog_li N/A exog N/A self exog_li N/A cached_means N/A self cached_means N/A varfunc N/A N/A self family variance N/A N/A bmat score N/A 0 0 N/A i N/A range N/A self num_group N/A N/A N/A expval lpr N/A cached_means N/A i N/A resid N/A N/A endog N/A i expval N/A dmat N/A N/A self mean_deriv N/A exog N/A i lpr N/A sdev N/A N/A np sqrt N/A varfunc expval N/A rslt N/A N/A N/A self cov_struct covariance_matrix_solve expval i sdev N/A dmat resid N/A N/A rslt None N/A N/A N/A None None N/A N/A vinv_d vinv_resid N/A tuple rslt N/A f N/A N/A N/A self weights None N/A N/A self weights_li N/A i 1.0 N/A bmat N/A f N/A N/A np dot N/A dmat T vinv_d N/A score N/A f N/A N/A np dot N/A dmat T vinv_resid N/A update N/A N/A N/A np linalg solve bmat score N/A N/A N/A N/A N/A self _fit_history N/A cov_adjust append N/A N/A self cov_struct cov_adjust N/A N/A update score N/A update_cached_means N/A N/A self mean_params N/A N/A N/A 
        cached_means should always contain the most recent calculation
        of the group-wise mean vectors.  This function should be
        called every time the regression parameters are changed, to
        keep the cached means up to date.
         N/A endog N/A self endog_li N/A exog N/A self exog_li N/A offset N/A self offset_li N/A linkinv N/A N/A N/A self family link inverse N/A N/A self cached_means N/A N/A i N/A range N/A self num_group N/A N/A N/A N/A len N/A endog N/A i 0 N/A N/A N/A lpr N/A N/A np dot N/A exog N/A i mean_params N/A N/A offset None N/A N/A lpr N/A offset N/A i N/A expval N/A linkinv lpr N/A N/A N/A N/A self cached_means append N/A expval lpr N/A _covmat N/A N/A self N/A N/A N/A 
        Returns the sampling covariance matrix of the regression
        parameters and related quantities.

        Returns
        -------
        cov_robust : array-like
           The robust, or sandwich estimate of the covariance, which
           is meaningful even if the working covariance structure is
           incorrectly specified.
        cov_naive : array-like
           The model-based estimate of the covariance, which is
           meaningful if the covariance structure is correctly
           specified.
        cov_robust_bc : array-like
           The "bias corrected" robust covariance of Mancl and
           DeRouen.
        cmat : array-like
           The center matrix of the sandwich expression, used in
           obtaining score test results.
         N/A endog N/A self endog_li N/A exog N/A self exog_li N/A varfunc N/A N/A self family variance N/A cached_means N/A self cached_means N/A N/A bmat cmat N/A 0 0 N/A i N/A range N/A self num_group N/A N/A N/A expval lpr N/A cached_means N/A i N/A resid N/A N/A endog N/A i expval N/A dmat N/A N/A self mean_deriv N/A exog N/A i lpr N/A sdev N/A N/A np sqrt N/A varfunc expval N/A rslt N/A N/A N/A self cov_struct covariance_matrix_solve expval i sdev N/A dmat resid N/A N/A rslt None N/A N/A N/A None None None None N/A N/A vinv_d vinv_resid N/A tuple rslt N/A f N/A N/A N/A self weights None N/A N/A self weights_li N/A i 1.0 N/A bmat N/A f N/A N/A np dot N/A dmat T vinv_d N/A dvinv_resid N/A f N/A N/A np dot N/A dmat T vinv_resid N/A cmat N/A N/A np outer dvinv_resid dvinv_resid N/A scale N/A N/A self estimate_scale N/A bmati N/A N/A N/A np linalg inv bmat N/A cov_naive N/A bmati scale N/A cov_robust N/A N/A np dot bmati N/A N/A np dot cmat bmati N/A bcm 0 N/A i N/A range N/A self num_group N/A N/A N/A expval lpr N/A cached_means N/A i N/A resid N/A N/A endog N/A i expval N/A dmat N/A N/A self mean_deriv N/A exog N/A i lpr N/A sdev N/A N/A np sqrt N/A varfunc expval N/A rslt N/A N/A N/A self cov_struct covariance_matrix_solve expval i sdev N/A dmat N/A N/A rslt None N/A N/A N/A None None None None N/A vinv_d N/A rslt N/A 0 N/A vinv_d scale N/A hmat N/A N/A np dot vinv_d cov_naive N/A hmat N/A N/A N/A np dot hmat N/A dmat T T N/A f N/A N/A N/A self weights None N/A N/A self weights_li N/A i 1.0 N/A aresid N/A N/A N/A np linalg solve N/A N/A N/A np eye N/A len resid hmat resid N/A rslt N/A N/A N/A self cov_struct covariance_matrix_solve expval i sdev N/A aresid N/A N/A rslt None N/A N/A N/A None None None None N/A srt N/A rslt N/A 0 N/A srt N/A N/A f N/A N/A np dot N/A dmat T srt scale N/A bcm N/A N/A np outer srt srt N/A cov_robust_bc N/A N/A np dot cov_naive N/A N/A np dot bcm cov_naive N/A cov_naive N/A self scaling_factor N/A cov_robust N/A self scaling_factor N/A cov_robust_bc N/A self scaling_factor N/A N/A cov_robust cov_naive cov_robust_bc cmat N/A predict N/A N/A self params exog offset exposure linear N/A None None None False N/A N/A 
        Return predicted values for a marginal regression model fit
        using GEE.

        Parameters
        ----------
        params : array-like
            Parameters / coefficients of a marginal regression model.
        exog : array-like, optional
            Design / exogenous data. If exog is None, model exog is
            used.
        offset : array-like, optional
            Offset for exog if provided.  If offset is None, model
            offset is used.
        exposure : array-like, optional
            Exposure for exog, if exposure is None, model exposure is
            used.  Only allowed if link function is the logarithm.
        linear : bool
            If True, returns the linear predicted values.  If False,
            returns the value of the inverse of the model's link
            function at the linear predicted values.

        Returns
        -------
        An array of fitted values

        Notes
        -----
        Using log(V) as the offset is equivalent to using V as the
        exposure.  If exposure U and offset V are both provided, then
        log(U) + V is added to the linear predictor.
         N/A N/A N/A exposure None N/A N/A isinstance N/A N/A self family link N/A N/A families links Log N/A N/A N/A ValueError exposure can only be used with the log link function N/A _offset 0.0 N/A N/A exog None N/A N/A exog N/A self exog N/A N/A N/A isinstance N/A N/A self family link N/A N/A families links Log N/A N/A N/A offset None N/A N/A N/A N/A self _offset_exposure None N/A N/A _offset N/A N/A N/A self _offset_exposure copy N/A N/A _offset offset N/A N/A N/A N/A offset None N/A exposure None N/A N/A N/A N/A self _offset_exposure None N/A N/A _offset N/A self _offset_exposure N/A N/A N/A N/A offset None N/A exposure None N/A N/A _offset N/A N/A np log exposure N/A N/A hasattr self offset N/A N/A _offset N/A _offset N/A self offset N/A N/A N/A N/A offset None N/A exposure None N/A N/A _offset offset N/A N/A hasattr self exposure N/A N/A _offset N/A offset N/A N/A np log N/A self exposure N/A N/A _offset N/A offset N/A N/A np log exposure N/A N/A N/A offset None N/A N/A _offset N/A _offset offset N/A N/A exposure None N/A N/A _offset N/A N/A np log exposure N/A lin_pred N/A _offset N/A N/A np dot exog params N/A N/A linear N/A N/A N/A N/A N/A N/A self family link inverse lin_pred N/A lin_pred N/A _starting_params N/A N/A self N/A N/A N/A N/A N/A np zeros N/A N/A N/A self exog shape N/A 1 N/A fit N/A N/A self maxiter ctol start_params params_niter first_dep_update cov_type ddof_scale scaling_factor N/A 60 1e-06 None 1 0 robust None 1.0 N/A N/A N/A ddof_scale None N/A N/A N/A self ddof_scale N/A N/A N/A self exog shape N/A 1 N/A N/A N/A N/A ddof_scale 0 N/A N/A N/A ValueError ddof_scale must be a non-negative number or None N/A N/A self ddof_scale ddof_scale N/A N/A self scaling_factor scaling_factor N/A N/A self _fit_history N/A params score dep_params cov_adjust N/A N/A N/A N/A N/A N/A N/A N/A self weights None N/A cov_type naive N/A N/A N/A ValueError when using weights, cov_type may not be naive N/A N/A start_params None N/A N/A mean_params N/A N/A self _starting_params N/A N/A start_params N/A N/A np asarray start_params N/A mean_params N/A N/A start_params copy N/A N/A N/A self update_cached_means mean_params N/A del_params -1.0 N/A num_assoc_updates 0 N/A itr N/A range maxiter N/A N/A N/A update score N/A N/A self _update_mean_params N/A N/A update None N/A N/A N/A N/A warnings warn Singular matrix encountered in GEE update ConvergenceWarning N/A N/A mean_params update N/A N/A N/A self update_cached_means mean_params N/A del_params N/A N/A np sqrt N/A N/A np sum N/A score 2 N/A N/A N/A N/A N/A self _fit_history N/A params append N/A N/A mean_params copy N/A N/A N/A N/A N/A self _fit_history N/A score append score N/A N/A N/A N/A N/A self _fit_history N/A dep_params append N/A N/A self cov_struct dep_params N/A N/A N/A del_params ctol N/A N/A num_assoc_updates 0 N/A N/A self update_dep False N/A N/A N/A N/A N/A self update_dep N/A N/A itr params_niter 0 N/A itr first_dep_update N/A N/A N/A N/A self _update_assoc mean_params N/A num_assoc_updates 1 N/A N/A del_params ctol N/A N/A N/A N/A warnings warn Iteration limit reached prior to convergence IterationLimitWarning N/A N/A mean_params None N/A N/A N/A N/A warnings warn Unable to estimate GEE parameters. ConvergenceWarning N/A None N/A N/A bcov ncov bc_cov _ N/A N/A self _covmat N/A N/A bcov None N/A N/A N/A N/A warnings warn Estimated covariance structure for GEE estimates is singular ConvergenceWarning N/A None N/A N/A N/A self constraint None N/A N/A N/A mean_params bcov N/A N/A self _handle_constraint mean_params bcov N/A N/A mean_params None N/A N/A N/A N/A warnings warn Unable to estimate constrained GEE parameters. ConvergenceWarning N/A None N/A scale N/A N/A self estimate_scale N/A res_kwds N/A dict cov_type cov_type cov_robust bcov cov_naive ncov cov_robust_bc bc_cov N/A results N/A GEEResults self mean_params N/A bcov scale scale cov_type cov_type use_t False attr_kwds res_kwds N/A N/A results fit_history N/A self _fit_history N/A N/A delattr self _fit_history N/A N/A results score_norm del_params N/A N/A results converged N/A del_params ctol N/A N/A results cov_struct N/A self cov_struct N/A N/A results params_niter params_niter N/A N/A results first_dep_update first_dep_update N/A N/A results ctol ctol N/A N/A results maxiter maxiter N/A N/A results _props N/A cov_type use_t cov_params_default cov_robust cov_naive cov_robust_bc fit_history score_norm converged cov_struct params_niter first_dep_update ctol maxiter N/A N/A GEEResultsWrapper results N/A N/A N/A fit __doc__ _gee_fit_doc _handle_constraint N/A N/A self mean_params bcov N/A N/A N/A 
        Expand the parameter estimate `mean_params` and covariance matrix
        `bcov` to the coordinate system of the unconstrained model.

        Parameters
        ----------
        mean_params : array-like
            A parameter vector estimate for the reduced model.
        bcov : array-like
            The covariance matrix of mean_params.

        Returns
        -------
        mean_params : array-like
            The input parameter vector mean_params, expanded to the
            coordinate system of the full model
        bcov : array-like
            The input covariance matrix bcov, expanded to the
            coordinate system of the full model
         N/A red_p N/A len mean_params N/A full_p N/A N/A N/A N/A self constraint lhs shape N/A 1 N/A mean_params0 N/A N/A np r_ N/A N/A mean_params N/A N/A np zeros N/A full_p red_p N/A save_exog_li N/A self exog_li N/A N/A self exog_li N/A N/A self constraint exog_fulltrans_li N/A copy N/A save_cached_means N/A N/A copy deepcopy N/A self cached_means N/A N/A N/A self update_cached_means mean_params0 N/A N/A _ score N/A N/A self _update_mean_params N/A N/A score None N/A N/A N/A N/A warnings warn Singular matrix encountered in GEE score test ConvergenceWarning N/A N/A None None N/A N/A _ ncov1 _ cmat N/A N/A self _covmat N/A scale N/A N/A self estimate_scale N/A cmat N/A cmat N/A scale 2 N/A score2 N/A N/A score N/A red_p scale N/A amat N/A N/A N/A np linalg inv ncov1 N/A bmat_11 N/A cmat N/A N/A 0 red_p N/A 0 red_p N/A bmat_22 N/A cmat N/A N/A red_p N/A red_p N/A bmat_12 N/A cmat N/A N/A 0 red_p N/A red_p N/A amat_11 N/A amat N/A N/A 0 red_p N/A 0 red_p N/A amat_12 N/A amat N/A N/A 0 red_p N/A red_p N/A score_cov N/A bmat_22 N/A N/A np dot N/A amat_12 T N/A N/A N/A np linalg solve amat_11 bmat_12 N/A score_cov N/A N/A np dot N/A bmat_12 T N/A N/A N/A np linalg solve amat_11 amat_12 N/A score_cov N/A N/A np dot N/A amat_12 T N/A N/A np dot N/A N/A N/A np linalg solve amat_11 bmat_11 N/A N/A N/A np linalg solve amat_11 amat_12 scipy.stats.distributions chi2 N/A score_statistic N/A N/A np dot score2 N/A N/A N/A np linalg solve score_cov score2 N/A score_df N/A len score2 N/A score_pvalue N/A 1 N/A N/A chi2 cdf score_statistic score_df N/A N/A self score_test_results N/A statistic df p-value score_statistic score_df score_pvalue N/A mean_params N/A N/A N/A self constraint unpack_param mean_params N/A bcov N/A N/A N/A self constraint unpack_cov bcov N/A N/A self exog_li save_exog_li N/A N/A self cached_means save_cached_means N/A N/A self exog N/A N/A N/A self constraint restore_exog N/A N/A mean_params bcov N/A _update_assoc N/A N/A self params N/A N/A N/A 
        Update the association parameters
         N/A N/A N/A N/A self cov_struct update params N/A _derivative_exog N/A N/A self params exog transform dummy_idx count_idx N/A None dydx None None N/A N/A 
        For computing marginal effects, returns dF(XB) / dX where F(.)
        is the fitted mean.

        transform can be 'dydx', 'dyex', 'eydx', or 'eyex'.

        Not all of these make sense in the presence of discrete regressors,
        but checks are done in the results in get_margeff.
         N/A offset_exposure None N/A N/A exog None N/A N/A exog N/A self exog N/A offset_exposure N/A self _offset_exposure N/A margeff N/A N/A self mean_deriv_exog exog params offset_exposure N/A N/A ex transform N/A N/A margeff exog N/A N/A ey transform N/A N/A margeff N/A N/A N/A self predict params exog N/A N/A N/A None N/A N/A count_idx None N/A statsmodels.discrete.discrete_margins _get_count_effects N/A margeff N/A _get_count_effects margeff exog count_idx transform self params N/A N/A dummy_idx None N/A statsmodels.discrete.discrete_margins _get_dummy_effects N/A margeff N/A _get_dummy_effects margeff exog dummy_idx transform self params N/A margeff N/A N/A GEEResults N/A N/A base LikelihoodModelResults N/A N/A __doc__ N/A This class summarizes the fit of a marginal regression model using GEE.
 _gee_results_doc __init__ N/A N/A self model params cov_params scale cov_type use_t N/A robust False kwds N/A N/A N/A N/A N/A super GEEResults self __init__ model params normalized_cov_params cov_params scale scale N/A N/A self df_resid N/A model df_resid N/A N/A self df_model N/A model df_model N/A N/A self family N/A model family N/A attr_kwds N/A N/A kwds pop attr_kwds N/A N/A N/A N/A N/A self __dict__ update attr_kwds N/A N/A N/A N/A hasattr self cov_type N/A hasattr self cov_params_default N/A N/A N/A self cov_type cov_type N/A covariance_type N/A N/A N/A self cov_type lower N/A allowed_covariances N/A robust naive bias_reduced N/A N/A covariance_type allowed_covariances N/A N/A msg N/A GEE: `cov_type` must be one of  N/A N/A ,  join allowed_covariances N/A N/A ValueError msg N/A N/A cov_type robust N/A N/A cov N/A self cov_robust N/A N/A N/A cov_type naive N/A N/A cov N/A self cov_naive N/A N/A N/A cov_type bias_reduced N/A N/A cov N/A self cov_robust_bc N/A N/A self cov_params_default cov N/A N/A N/A N/A self cov_type cov_type N/A N/A N/A ValueError cov_type in argument is different from already attached cov_type N/A standard_errors N/A N/A self cov_type N/A robust N/A N/A 
        This is a convenience function that returns the standard
        errors for any covariance type.  The value of `bse` is the
        standard errors for whichever covariance type is specified as
        an argument to `fit` (defaults to "robust").

        Parameters
        ----------
        cov_type : string
            One of "robust", "naive", or "bias_reduced".  Determines
            the covariance used to compute standard errors.  Defaults
            to "robust".
         N/A covariance_type N/A N/A cov_type lower N/A allowed_covariances N/A robust naive bias_reduced N/A N/A covariance_type allowed_covariances N/A N/A msg N/A GEE: `covariance_type` must be one of  N/A N/A ,  join allowed_covariances N/A N/A ValueError msg N/A N/A covariance_type robust N/A N/A N/A N/A np sqrt N/A N/A np diag N/A self cov_robust N/A N/A N/A covariance_type naive N/A N/A N/A N/A np sqrt N/A N/A np diag N/A self cov_naive N/A N/A N/A covariance_type bias_reduced N/A N/A N/A N/A np sqrt N/A N/A np diag N/A self cov_robust_bc N/A bse N/A N/A self N/A N/A N/A N/A N/A self standard_errors N/A self cov_type N/A cache_readonly resid N/A N/A self N/A N/A N/A 
        Returns the residuals, the endogeneous data minus the fitted
        values from the model.
         N/A N/A N/A N/A self model endog N/A self fittedvalues N/A cache_readonly resid_split N/A N/A self N/A N/A N/A 
        Returns the residuals, the endogeneous data minus the fitted
        values from the model.  The residuals are returned as a list
        of arrays containing the residuals for each cluster.
         N/A sresid N/A N/A v N/A N/A self model group_labels N/A N/A ii N/A N/A N/A self model group_indices N/A v N/A N/A N/A sresid append N/A N/A self resid N/A ii N/A sresid N/A cache_readonly resid_centered N/A N/A self N/A N/A N/A 
        Returns the residuals centered within each group.
         N/A cresid N/A N/A N/A self resid copy N/A v N/A N/A self model group_labels N/A N/A ii N/A N/A N/A self model group_indices N/A v N/A N/A cresid N/A ii N/A N/A N/A cresid N/A ii mean N/A cresid N/A cache_readonly resid_centered_split N/A N/A self N/A N/A N/A 
        Returns the residuals centered within each group.  The
        residuals are returned as a list of arrays containing the
        centered residuals for each cluster.
         N/A sresid N/A N/A v N/A N/A self model group_labels N/A N/A ii N/A N/A N/A self model group_indices N/A v N/A N/A N/A sresid append N/A N/A self centered_resid N/A ii N/A sresid N/A cache_readonly N/A split_resid resid_split N/A centered_resid resid_centered N/A split_centered_resid resid_centered_split resid_response N/A N/A self N/A N/A N/A N/A N/A N/A self model endog N/A self fittedvalues N/A cache_readonly resid_pearson N/A N/A self N/A N/A N/A val N/A N/A N/A self model endog N/A self fittedvalues N/A val N/A val N/A N/A np sqrt N/A N/A N/A self family variance N/A self fittedvalues N/A val N/A cache_readonly resid_working N/A N/A self N/A N/A N/A val N/A self resid_response N/A val N/A val N/A N/A N/A N/A self family link deriv N/A self fittedvalues N/A val N/A cache_readonly resid_anscombe N/A N/A self N/A N/A N/A N/A N/A N/A self family resid_anscombe N/A N/A self model endog N/A self fittedvalues N/A cache_readonly resid_deviance N/A N/A self N/A N/A N/A N/A N/A N/A self family resid_dev N/A N/A self model endog N/A self fittedvalues N/A cache_readonly fittedvalues N/A N/A self N/A N/A N/A 
        Returns the fitted values from the model.
         N/A N/A N/A N/A N/A N/A self model family link inverse N/A N/A np dot N/A N/A self model exog N/A self params N/A cache_readonly plot_added_variable N/A N/A self focus_exog resid_type use_glm_weights fit_kwargs ax N/A None True None None N/A statsmodels.graphics.regressionplots plot_added_variable N/A fig N/A plot_added_variable self focus_exog resid_type resid_type use_glm_weights use_glm_weights fit_kwargs fit_kwargs ax ax N/A fig N/A N/A N/A plot_added_variable __doc__ N/A _plot_added_variable_doc N/A extra_params_doc plot_partial_residuals N/A N/A self focus_exog ax N/A None N/A statsmodels.graphics.regressionplots plot_partial_residuals N/A N/A plot_partial_residuals self focus_exog ax ax N/A N/A N/A plot_partial_residuals __doc__ N/A _plot_partial_residuals_doc N/A extra_params_doc plot_ceres_residuals N/A N/A self focus_exog frac cond_means ax N/A 0.66 None None N/A statsmodels.graphics.regressionplots plot_ceres_residuals N/A N/A plot_ceres_residuals self focus_exog frac cond_means cond_means ax ax N/A N/A N/A plot_ceres_residuals __doc__ N/A _plot_ceres_residuals_doc N/A extra_params_doc conf_int N/A N/A self alpha cols cov_type N/A 0.05 None None N/A N/A 
        Returns confidence intervals for the fitted parameters.

        Parameters
        ----------
        alpha : float, optional
             The `alpha` level for the confidence interval.  i.e., The
             default `alpha` = .05 returns a 95% confidence interval.
        cols : array-like, optional
             `cols` specifies which confidence intervals to return
        cov_type : string
             The covariance type used for computing standard errors;
             must be one of 'robust', 'naive', and 'bias reduced'.
             See `GEE` for details.

        Notes
        -----
        The confidence interval is based on the Gaussian distribution.
         N/A N/A cov_type None N/A N/A bse N/A self bse N/A N/A bse N/A N/A self standard_errors cov_type cov_type N/A params N/A self params N/A dist N/A stats norm N/A q N/A N/A dist ppf N/A 1 N/A alpha 2 N/A N/A cols None N/A N/A lower N/A N/A self params N/A q bse N/A upper N/A N/A self params N/A q bse N/A N/A cols N/A N/A np asarray cols N/A lower N/A N/A params N/A cols N/A q N/A bse N/A cols N/A upper N/A N/A params N/A cols N/A q N/A bse N/A cols N/A N/A N/A np asarray N/A lzip lower upper N/A summary N/A N/A self yname xname title alpha N/A None None None 0.05 N/A N/A 
        Summarize the GEE regression results

        Parameters
        -----------
        yname : string, optional
            Default is `y`
        xname : list of strings, optional
            Default is `var_##` for ## in p the number of regressors
        title : string, optional
            Title for the top table. If not None, then this replaces
            the default title
        alpha : float
            significance level for the confidence intervals
        cov_type : string
            The covariance type used to compute the standard errors;
            one of 'robust' (the usual robust sandwich-type covariance
            estimate), 'naive' (ignores dependence), and 'bias
            reduced' (the Mancl/DeRouen estimate).

        Returns
        -------
        smry : Summary instance
            this holds the summary tables and text, which can be
            printed or converted to various output formats.

        See Also
        --------
        statsmodels.iolib.summary.Summary : class to hold summary
            results

         N/A top_left N/A N/A Dep. Variable: None N/A Model: None N/A Method: N/A Generalized N/A N/A Estimating Equations N/A Family: N/A N/A N/A N/A N/A self model family __class__ __name__ N/A Dependence structure: N/A N/A N/A N/A N/A self model cov_struct __class__ __name__ N/A Date: None N/A Covariance type:  N/A N/A self cov_type N/A NY N/A N/A len y N/A y N/A N/A self model endog_li N/A top_right N/A N/A No. Observations: N/A N/A sum NY N/A No. clusters: N/A N/A len N/A N/A self model endog_li N/A Min. cluster size: N/A N/A min NY N/A Max. cluster size: N/A N/A max NY N/A Mean cluster size: N/A N/A %.1f N/A N/A np mean NY N/A Num. iterations: N/A N/A %d N/A len N/A N/A self fit_history N/A params N/A Scale: N/A N/A %.3f N/A self scale N/A Time: None N/A skew1 N/A N/A stats skew N/A self resid N/A kurt1 N/A N/A stats kurtosis N/A self resid N/A skew2 N/A N/A stats skew N/A self centered_resid N/A kurt2 N/A N/A stats kurtosis N/A self centered_resid N/A diagn_left N/A N/A Skew: N/A N/A %12.4f skew1 N/A Centered skew: N/A N/A %12.4f skew2 N/A diagn_right N/A N/A Kurtosis: N/A N/A %12.4f kurt1 N/A Centered kurtosis: N/A N/A %12.4f kurt2 N/A N/A title None N/A N/A title N/A N/A N/A N/A N/A self model __class__ __name__ Regression Results N/A N/A xname None N/A N/A xna xname N/A N/A xna N/A N/A self model exog_names statsmodels.iolib.summary Summary N/A smry N/A Summary N/A N/A N/A smry add_table_2cols self gleft top_left gright top_right yname N/A N/A self model endog_names xname xna title title N/A N/A N/A smry add_table_params self yname yname xname xna alpha alpha use_t False N/A N/A N/A smry add_table_2cols self gleft diagn_left gright diagn_right yname yname xname xna title N/A smry N/A get_margeff N/A N/A self at method atexog dummy count N/A overall dydx None False False N/A N/A Get marginal effects of the fitted model.

        Parameters
        ----------
        at : str, optional
            Options are:

            - 'overall', The average of the marginal effects at each
              observation.
            - 'mean', The marginal effects at the mean of each regressor.
            - 'median', The marginal effects at the median of each regressor.
            - 'zero', The marginal effects at zero for each regressor.
            - 'all', The marginal effects at each observation. If `at` is 'all'
              only margeff will be available.

            Note that if `exog` is specified, then marginal effects for all
            variables not specified by `exog` are calculated using the `at`
            option.
        method : str, optional
            Options are:

            - 'dydx' - dy/dx - No transformation is made and marginal effects
              are returned.  This is the default.
            - 'eyex' - estimate elasticities of variables in `exog` --
              d(lny)/d(lnx)
            - 'dyex' - estimate semielasticity -- dy/d(lnx)
            - 'eydx' - estimate semeilasticity -- d(lny)/dx

            Note that tranformations are done after each observation is
            calculated.  Semi-elasticities for binary variables are computed
            using the midpoint method. 'dyex' and 'eyex' do not make sense
            for discrete variables.
        atexog : array-like, optional
            Optionally, you can provide the exogenous variables over which to
            get the marginal effects.  This should be a dictionary with the key
            as the zero-indexed column number and the value of the dictionary.
            Default is None for all independent variables less the constant.
        dummy : bool, optional
            If False, treats binary variables (if present) as continuous.  This
            is the default.  Else if True, treats binary variables as
            changing from 0 to 1.  Note that any variable that is either 0 or 1
            is treated as binary.  Each binary variable is treated separately
            for now.
        count : bool, optional
            If False, treats count variables (if present) as continuous.  This
            is the default.  Else if True, the marginal effect is the
            change in probabilities when each observation is increased by one.

        Returns
        -------
        effects : ndarray
            the marginal effect corresponding to the input options

        Notes
        -----
        When using after Poisson, returns the expected number of events
        per period, assuming that the model is loglinear.
         N/A N/A N/A N/A self model constraint None N/A N/A N/A N/A warnings warn marginal effects ignore constraints N/A N/A GEEMargins self N/A at method atexog dummy count N/A plot_isotropic_dependence N/A N/A self ax xpoints min_n N/A None 10 50 N/A N/A 
        Create a plot of the pairwise products of within-group
        residuals against the corresponding time differences.  This
        plot can be used to assess the possible form of an isotropic
        covariance structure.

        Parameters
        ----------
        ax : Matplotlib axes instance
            An axes on which to draw the graph.  If None, new
            figure and axes objects are created
        xpoints : scalar or array-like
            If scalar, the number of points equally spaced points on
            the time difference axis used to define bins for
            calculating local means.  If an array, the specific points
            that define the bins.
        min_n : integer
            The minimum sample size in a bin for the mean residual
            product to be included on the plot.
         statsmodels.graphics utils gutils N/A resid N/A N/A N/A self model cluster_list N/A self resid N/A time N/A N/A N/A self model cluster_list N/A N/A self model time N/A N/A xre xdt N/A N/A N/A N/A N/A re ti N/A zip resid time N/A N/A ix N/A N/A np tril_indices N/A N/A re shape N/A 0 0 N/A re N/A N/A N/A re N/A N/A ix N/A 0 N/A re N/A N/A ix N/A 1 N/A N/A self scale 2 N/A N/A N/A xre append re N/A dists N/A N/A np sqrt N/A N/A N/A N/A N/A ti N/A N/A N/A ix N/A 0 N/A N/A ti N/A N/A N/A ix N/A 1 N/A 2 sum 1 N/A N/A N/A xdt append dists N/A xre N/A N/A np concatenate xre N/A xdt N/A N/A np concatenate xdt N/A N/A ax None N/A N/A N/A fig ax N/A N/A gutils create_mpl_ax ax N/A N/A fig N/A N/A ax get_figure N/A ii N/A N/A np flatnonzero N/A xdt 0 N/A v0 N/A N/A np mean N/A xre N/A ii N/A xre v0 N/A N/A N/A np isscalar xpoints N/A N/A xpoints N/A N/A np linspace 0 N/A max xdt xpoints N/A dg N/A N/A np digitize xdt xpoints N/A dgu N/A N/A np unique dg N/A hist N/A N/A np asarray N/A N/A N/A np sum N/A dg k N/A k dgu N/A ii N/A N/A np flatnonzero N/A hist min_n N/A dgu N/A dgu N/A ii N/A dgy N/A N/A np asarray N/A N/A N/A np mean N/A xre N/A N/A dg k N/A k dgu N/A dgx N/A N/A np asarray N/A N/A N/A np mean N/A xdt N/A N/A dg k N/A k dgu N/A N/A N/A ax plot dgx dgy - color orange lw 5 N/A N/A N/A ax set_xlabel Time difference N/A N/A N/A ax set_ylabel Product of scaled residuals N/A fig N/A sensitivity_params N/A N/A self dep_params_first dep_params_last num_steps N/A N/A N/A 
        Refits the GEE model using a sequence of values for the
        dependence parameters.

        Parameters
        ----------
        dep_params_first : array-like
            The first dep_params in the sequence
        dep_params_last : array-like
            The last dep_params in the sequence
        num_steps : int
            The number of dep_params in the sequence

        Returns
        -------
        results : array-like
            The GEEResults objects resulting from the fits.
         N/A model N/A self model N/A copy N/A cov_struct N/A N/A copy deepcopy N/A N/A self model cov_struct N/A update_dep N/A model update_dep N/A N/A model update_dep False N/A dep_params N/A N/A results N/A N/A x N/A N/A np linspace 0 1 num_steps N/A N/A dp N/A N/A x dep_params_last N/A N/A 1 x dep_params_first N/A N/A N/A dep_params append dp N/A N/A model cov_struct N/A N/A copy deepcopy cov_struct N/A N/A N/A model cov_struct dep_params dp N/A rslt N/A N/A model fit start_params N/A self params ctol N/A self ctol params_niter N/A self params_niter first_dep_update N/A self first_dep_update cov_type N/A self cov_type N/A N/A N/A results append rslt N/A N/A model update_dep update_dep N/A results N/A N/A params_sensitivity sensitivity_params N/A GEEResultsWrapper N/A N/A lm RegressionResultsWrapper N/A N/A _attrs N/A centered_resid rows N/A _wrap_attrs N/A N/A wrap union_dicts N/A N/A lm RegressionResultsWrapper _wrap_attrs _attrs N/A N/A N/A N/A wrap populate_wrapper GEEResultsWrapper GEEResults OrdinalGEE N/A GEE N/A N/A __doc__ N/A     Estimation of ordinal response marginal regression models
    using Generalized Estimating Equations (GEE).
 N/A _gee_init_doc N/A extra_params family_doc example N/A base _missing_param_doc _gee_ordinal_family_doc _gee_ordinal_example __init__ N/A N/A self endog exog groups time family cov_struct missing offset dep_data constraint N/A None None None none None None None kwargs N/A N/A N/A family None N/A N/A family N/A N/A families Binomial N/A N/A N/A N/A isinstance family N/A families Binomial N/A N/A N/A ValueError ordinal GEE must use a Binomial family N/A N/A cov_struct None N/A N/A cov_struct N/A N/A cov_structs OrdinalIndependence N/A N/A endog exog groups time offset N/A N/A self setup_ordinal endog exog groups time offset N/A N/A N/A N/A super OrdinalGEE self __init__ endog exog groups time family cov_struct missing offset dep_data constraint N/A setup_ordinal N/A N/A self endog exog groups time offset N/A N/A N/A 
        Restructure ordinal data as binary indicators so that they can
        be analysed using Generalized Estimating Equations.
         N/A N/A self endog_orig N/A N/A endog copy N/A N/A self exog_orig N/A N/A exog copy N/A N/A self groups_orig N/A N/A groups copy N/A N/A offset None N/A N/A N/A self offset_orig N/A N/A offset copy N/A N/A N/A self offset_orig None N/A offset N/A N/A np zeros N/A len endog N/A N/A time None N/A N/A N/A self time_orig N/A N/A time copy N/A N/A N/A self time_orig None N/A time N/A N/A np zeros N/A N/A len endog 1 N/A exog N/A N/A np asarray exog N/A endog N/A N/A np asarray endog N/A groups N/A N/A np asarray groups N/A time N/A N/A np asarray time N/A offset N/A N/A np asarray offset N/A N/A self endog_values N/A N/A np unique endog N/A endog_cuts N/A N/A self endog_values N/A 0 -1 N/A ncut N/A len endog_cuts N/A nrows N/A ncut N/A len endog N/A exog_out N/A N/A np zeros N/A nrows N/A N/A exog shape N/A 1 dtype N/A np float64 N/A endog_out N/A N/A np zeros nrows dtype N/A np float64 N/A intercepts N/A N/A np zeros N/A nrows ncut dtype N/A np float64 N/A groups_out N/A N/A np zeros nrows dtype N/A groups dtype N/A time_out N/A N/A np zeros N/A nrows N/A N/A time shape N/A 1 dtype N/A np float64 N/A offset_out N/A N/A np zeros nrows dtype N/A np float64 N/A jrow 0 N/A zipper N/A zip exog endog groups time offset N/A N/A exog_row endog_value group_value time_value offset_value zipper N/A N/A N/A thresh_ix thresh N/A enumerate endog_cuts N/A N/A N/A exog_out N/A N/A jrow N/A exog_row N/A N/A endog_out N/A jrow N/A int N/A endog_value thresh N/A N/A intercepts N/A N/A jrow thresh_ix 1 N/A N/A groups_out N/A jrow group_value N/A N/A time_out N/A jrow time_value N/A N/A offset_out N/A jrow offset_value N/A jrow 1 N/A exog_out N/A N/A np concatenate N/A intercepts exog_out axis 1 N/A xnames N/A N/A I(y>%.1f) v N/A v endog_cuts N/A N/A N/A type N/A self exog_orig N/A pd DataFrame N/A N/A N/A N/A xnames extend N/A N/A self exog_orig columns N/A N/A N/A N/A xnames extend N/A N/A x%d k N/A k N/A range 1 N/A N/A N/A exog shape N/A 1 1 N/A exog_out N/A N/A pd DataFrame exog_out columns xnames N/A N/A N/A type N/A self endog_orig N/A pd Series N/A N/A endog_out N/A N/A pd Series endog_out name N/A N/A self endog_orig name N/A N/A endog_out exog_out groups_out time_out offset_out N/A _starting_params N/A N/A self N/A N/A N/A model N/A GEE N/A self endog N/A self exog N/A self groups time N/A self time family N/A N/A families Binomial offset N/A self offset exposure N/A self exposure N/A result N/A N/A model fit N/A N/A result params N/A fit N/A N/A self maxiter ctol start_params params_niter first_dep_update cov_type N/A 60 1e-06 None 1 0 robust N/A N/A rslt N/A N/A N/A super OrdinalGEE self fit maxiter ctol start_params params_niter first_dep_update cov_type cov_type N/A rslt N/A rslt _results N/A res_kwds N/A dict N/A N/A k N/A getattr rslt k N/A k N/A rslt _props N/A ord_rslt N/A OrdinalGEEResults self N/A rslt params N/A N/A N/A rslt cov_params N/A rslt scale N/A rslt scale cov_type cov_type attr_kwds res_kwds N/A N/A OrdinalGEEResultsWrapper ord_rslt N/A N/A N/A fit __doc__ _gee_fit_doc N/A OrdinalGEEResults N/A GEEResults N/A N/A __doc__ N/A This class summarizes the fit of a marginal regression modelfor an ordinal response using GEE.
 _gee_results_doc plot_distribution N/A N/A self ax exog_values N/A None None N/A N/A 
        Plot the fitted probabilities of endog in an ordinal model,
        for specifed values of the predictors.

        Parameters
        ----------
        ax : Matplotlib axes instance
            An axes on which to draw the graph.  If None, new
            figure and axes objects are created
        exog_values : array-like
            A list of dictionaries, with each dictionary mapping
            variable names to values at which the variable is held
            fixed.  The values P(endog=y | exog) are plotted for all
            possible values of y, at the given exog value.  Variables
            not included in a dictionary are held fixed at the mean
            value.

        Example:
        --------
        We have a model with covariates 'age' and 'sex', and wish to
        plot the probabilities P(endog=y | exog) for males (sex=0) and
        for females (sex=1), as separate paths on the plot.  Since
        'age' is not included below in the map, it is held fixed at
        its mean value.

        >> ev = [{"sex": 1}, {"sex": 0}]
        >> rslt.distribution_plot(exog_values=ev)
         statsmodels.graphics utils gutils N/A N/A ax None N/A N/A N/A fig ax N/A N/A gutils create_mpl_ax ax N/A N/A fig N/A N/A ax get_figure N/A N/A exog_values None N/A N/A exog_values N/A N/A N/A exog_means N/A N/A N/A N/A self model exog mean 0 N/A ix_icept N/A i N/A N/A i x N/A enumerate N/A N/A self model exog_names N/A N/A x startswith I( N/A ev exog_values N/A N/A k N/A N/A ev keys N/A N/A N/A k N/A N/A self model exog_names N/A N/A N/A ValueError N/A %s is not a variable in the model k N/A pr N/A N/A j ix_icept N/A N/A xp N/A N/A np zeros_like N/A self params N/A N/A xp N/A j 1.0 N/A N/A i vn N/A enumerate N/A N/A self model exog_names N/A N/A N/A i ix_icept N/A N/A N/A N/A vn ev N/A N/A N/A xp N/A i N/A ev N/A vn N/A N/A N/A xp N/A i N/A exog_means N/A i N/A p N/A 1 N/A 1 N/A N/A np exp N/A N/A N/A np dot xp N/A self params N/A N/A N/A pr append p N/A N/A N/A pr insert 0 1 N/A N/A N/A pr append 0 N/A pr N/A N/A np asarray pr N/A prd N/A N/A N/A np diff pr N/A N/A N/A ax plot N/A N/A self model endog_values prd o- N/A N/A N/A ax set_xlabel Response value N/A N/A N/A ax set_ylabel Probability N/A N/A N/A ax set_ylim 0 1 N/A fig N/A N/A OrdinalGEEResultsWrapper N/A GEEResultsWrapper N/A N/A N/A N/A N/A N/A wrap populate_wrapper OrdinalGEEResultsWrapper OrdinalGEEResults NominalGEE N/A GEE N/A N/A __doc__ N/A     Estimation of nominal response marginal regression models
    using Generalized Estimating Equations (GEE).
 N/A _gee_init_doc N/A extra_params family_doc example N/A base _missing_param_doc _gee_nominal_family_doc _gee_nominal_example __init__ N/A N/A self endog exog groups time family cov_struct missing offset dep_data constraint N/A None None None none None None None kwargs N/A N/A N/A endog exog groups time offset N/A N/A self setup_nominal endog exog groups time offset N/A N/A family None N/A N/A family N/A _Multinomial N/A N/A self ncut 1 N/A N/A cov_struct None N/A N/A cov_struct N/A N/A cov_structs NominalIndependence N/A N/A N/A N/A super NominalGEE self __init__ endog exog groups time family cov_struct missing offset dep_data constraint N/A _starting_params N/A N/A self N/A N/A N/A model N/A GEE N/A self endog N/A self exog N/A self groups time N/A self time family N/A N/A families Binomial offset N/A self offset exposure N/A self exposure N/A result N/A N/A model fit N/A N/A result params N/A setup_nominal N/A N/A self endog exog groups time offset N/A N/A N/A 
        Restructure nominal data as binary indicators so that they can
        be analysed using Generalized Estimating Equations.
         N/A N/A self endog_orig N/A N/A endog copy N/A N/A self exog_orig N/A N/A exog copy N/A N/A self groups_orig N/A N/A groups copy N/A N/A offset None N/A N/A N/A self offset_orig N/A N/A offset copy N/A N/A N/A self offset_orig None N/A offset N/A N/A np zeros N/A len endog N/A N/A time None N/A N/A N/A self time_orig N/A N/A time copy N/A N/A N/A self time_orig None N/A time N/A N/A np zeros N/A N/A len endog 1 N/A exog N/A N/A np asarray exog N/A endog N/A N/A np asarray endog N/A groups N/A N/A np asarray groups N/A time N/A N/A np asarray time N/A offset N/A N/A np asarray offset N/A N/A self endog_values N/A N/A np unique endog N/A endog_cuts N/A N/A self endog_values N/A 0 -1 N/A ncut N/A len endog_cuts N/A N/A self ncut ncut N/A nrows N/A N/A len endog_cuts N/A N/A exog shape N/A 0 N/A ncols N/A N/A len endog_cuts N/A N/A exog shape N/A 1 N/A exog_out N/A N/A np zeros N/A nrows ncols dtype N/A np float64 N/A endog_out N/A N/A np zeros nrows dtype N/A np float64 N/A groups_out N/A N/A np zeros nrows dtype N/A np float64 N/A time_out N/A N/A np zeros N/A nrows N/A N/A time shape N/A 1 dtype N/A np float64 N/A offset_out N/A N/A np zeros nrows dtype N/A np float64 N/A jrow 0 N/A zipper N/A zip exog endog groups time offset N/A N/A exog_row endog_value group_value time_value offset_value zipper N/A N/A N/A thresh_ix thresh N/A enumerate endog_cuts N/A N/A u N/A N/A np zeros N/A len endog_cuts dtype N/A np float64 N/A N/A u N/A thresh_ix 1 N/A N/A exog_out N/A N/A jrow N/A N/A N/A np kron u exog_row N/A N/A endog_out N/A jrow N/A int N/A endog_value thresh N/A N/A groups_out N/A jrow group_value N/A N/A time_out N/A jrow time_value N/A N/A offset_out N/A jrow offset_value N/A jrow 1 N/A N/A N/A type N/A self exog_orig N/A pd DataFrame N/A N/A xnames_in N/A N/A self exog_orig columns N/A N/A xnames_in N/A N/A x%d k N/A k N/A range 1 N/A N/A N/A exog shape N/A 1 1 N/A xnames N/A N/A tr endog_cuts N/A N/A N/A N/A xnames extend N/A N/A %s[%.1f] N/A v tr N/A v xnames_in N/A exog_out N/A N/A pd DataFrame exog_out columns xnames N/A exog_out N/A N/A pd DataFrame exog_out columns xnames N/A N/A N/A type N/A self endog_orig N/A pd Series N/A N/A endog_out N/A N/A pd Series endog_out name N/A N/A self endog_orig name N/A N/A endog_out exog_out groups_out time_out offset_out N/A mean_deriv N/A N/A self exog lin_pred N/A N/A N/A 
        Derivative of the expected endog with respect to the parameters.

        Parameters
        ----------
        exog : array-like
           The exogeneous data at which the derivative is computed,
           number of rows must be a multiple of `ncut`.
        lin_pred : array-like
           The values of the linear predictor, length must be multiple
           of `ncut`.

        Returns
        -------
        The derivative of the expected endog with respect to the
        parameters.
         N/A expval N/A N/A np exp lin_pred N/A expval_m N/A N/A np reshape expval N/A N/A N/A len expval N/A self ncut N/A self ncut N/A denom N/A 1 N/A N/A expval_m sum 1 N/A denom N/A N/A np kron denom N/A N/A np ones N/A self ncut dtype N/A np float64 N/A mprob N/A expval denom N/A dmat N/A N/A mprob N/A N/A N/A None exog N/A ddenom N/A N/A expval N/A N/A N/A None exog N/A dmat N/A N/A N/A mprob N/A N/A N/A None ddenom N/A denom N/A N/A N/A None N/A dmat N/A mean_deriv_exog N/A N/A self exog params offset_exposure N/A None N/A N/A 
        Derivative of the expected endog with respect to exog for the
        multinomial model, used in analyzing marginal effects.

        Parameters
        ----------
        exog : array-like
           The exogeneous data at which the derivative is computed,
           number of rows must be a multiple of `ncut`.
        lpr : array-like
           The linear predictor values, length must be multiple of
           `ncut`.

        Returns
        -------
        The value of the derivative of the expected endog with respect
        to exog.

        Notes
        -----
        offset_exposure must be set at None for the multinoial family.
         N/A N/A offset_exposure None N/A N/A N/A N/A warnings warn Offset/exposure ignored for the multinomial family N/A lpr N/A N/A np dot exog params N/A expval N/A N/A np exp lpr N/A expval_m N/A N/A np reshape expval N/A N/A N/A len expval N/A self ncut N/A self ncut N/A denom N/A 1 N/A N/A expval_m sum 1 N/A denom N/A N/A np kron denom N/A N/A np ones N/A self ncut dtype N/A np float64 N/A bmat0 N/A N/A np outer N/A N/A np ones N/A N/A exog shape N/A 0 params N/A qmat N/A N/A j N/A range N/A self ncut N/A N/A ee N/A N/A np zeros N/A self ncut dtype N/A np float64 N/A N/A ee N/A j 1 N/A N/A N/A qmat append N/A N/A np kron ee N/A N/A np ones N/A N/A len params N/A self ncut N/A qmat N/A N/A np array qmat N/A qmat N/A N/A np kron N/A N/A np ones N/A N/A N/A N/A exog shape N/A 0 N/A self ncut 1 qmat N/A bmat N/A bmat0 qmat N/A dmat N/A N/A N/A expval N/A N/A N/A None bmat N/A denom N/A N/A N/A None N/A expval_mb N/A N/A np kron expval_m N/A N/A np ones N/A N/A self ncut 1 N/A expval_mb N/A N/A np kron expval_mb N/A N/A np ones N/A 1 N/A self ncut N/A dmat N/A N/A N/A expval N/A N/A N/A None N/A bmat expval_mb N/A N/A denom N/A N/A N/A None 2 N/A dmat N/A fit N/A N/A self maxiter ctol start_params params_niter first_dep_update cov_type N/A 60 1e-06 None 1 0 robust N/A N/A rslt N/A N/A N/A super NominalGEE self fit maxiter ctol start_params params_niter first_dep_update cov_type cov_type N/A N/A rslt None N/A N/A N/A N/A warnings warn GEE updates did not converge ConvergenceWarning N/A None N/A rslt N/A rslt _results N/A res_kwds N/A dict N/A N/A k N/A getattr rslt k N/A k N/A rslt _props N/A nom_rslt N/A NominalGEEResults self N/A rslt params N/A N/A N/A rslt cov_params N/A rslt scale N/A rslt scale cov_type cov_type attr_kwds res_kwds N/A N/A NominalGEEResultsWrapper nom_rslt N/A N/A N/A fit __doc__ _gee_fit_doc N/A NominalGEEResults N/A GEEResults N/A N/A __doc__ N/A This class summarizes the fit of a marginal regression modelfor a nominal response using GEE.
 _gee_results_doc plot_distribution N/A N/A self ax exog_values N/A None None N/A N/A 
        Plot the fitted probabilities of endog in an nominal model,
        for specifed values of the predictors.

        Parameters
        ----------
        ax : Matplotlib axes instance
            An axes on which to draw the graph.  If None, new
            figure and axes objects are created
        exog_values : array-like
            A list of dictionaries, with each dictionary mapping
            variable names to values at which the variable is held
            fixed.  The values P(endog=y | exog) are plotted for all
            possible values of y, at the given exog value.  Variables
            not included in a dictionary are held fixed at the mean
            value.

        Example:
        --------
        We have a model with covariates 'age' and 'sex', and wish to
        plot the probabilities P(endog=y | exog) for males (sex=0) and
        for females (sex=1), as separate paths on the plot.  Since
        'age' is not included below in the map, it is held fixed at
        its mean value.

        >>> ex = [{"sex": 1}, {"sex": 0}]
        >>> rslt.distribution_plot(exog_values=ex)
         statsmodels.graphics utils gutils N/A N/A ax None N/A N/A N/A fig ax N/A N/A gutils create_mpl_ax ax N/A N/A fig N/A N/A ax get_figure N/A N/A exog_values None N/A N/A exog_values N/A N/A N/A link N/A N/A N/A N/A self model family link inverse N/A ncut N/A N/A N/A self model family ncut N/A k N/A N/A N/A N/A N/A self model exog shape N/A 1 ncut N/A exog_means N/A N/A N/A N/A N/A self model exog mean 0 N/A 0 k N/A exog_names N/A N/A N/A self model exog_names N/A 0 k N/A exog_names N/A N/A N/A N/A x split [ N/A 0 N/A x exog_names N/A params N/A N/A np reshape N/A self params N/A ncut N/A N/A len N/A self params ncut N/A ev exog_values N/A N/A exog N/A N/A exog_means copy N/A k N/A N/A ev keys N/A N/A N/A k exog_names N/A N/A N/A ValueError N/A %s is not a variable in the model k N/A ii N/A N/A exog_names index k N/A N/A exog N/A ii N/A ev N/A k N/A lpr N/A N/A np dot params exog N/A pr N/A link lpr N/A pr N/A N/A np r_ N/A N/A pr N/A 1 N/A N/A pr sum N/A N/A N/A ax plot N/A N/A self model endog_values pr o- N/A N/A N/A ax set_xlabel Response value N/A N/A N/A ax set_ylabel Probability N/A N/A N/A ax set_xticks N/A N/A self model endog_values N/A N/A N/A ax set_xticklabels N/A N/A self model endog_values N/A N/A N/A ax set_ylim 0 1 N/A fig N/A N/A NominalGEEResultsWrapper N/A GEEResultsWrapper N/A N/A N/A N/A N/A N/A wrap populate_wrapper NominalGEEResultsWrapper NominalGEEResults _MultinomialLogit N/A Link N/A N/A 
    The multinomial logit transform, only for use with GEE.

    Notes
    -----
    The data are assumed coded as binary indicators, where each
    observed multinomial value y is coded as I(y == S[0]), ..., I(y ==
    S[-1]), where S is the set of possible response labels, excluding
    the largest one.  Thererefore functions in this class should only
    be called using vector argument whose length is a multiple of |S|
    = ncut, which is an argument to be provided when initializing the
    class.

    call and derivative use a private method _clean to trim p by 1e-10
    so that p is in (0, 1)
     __init__ N/A N/A self ncut N/A N/A N/A N/A self ncut ncut N/A inverse N/A N/A self lpr N/A N/A N/A 
        Inverse of the multinomial logit transform, which gives the
        expected values of the data as a function of the linear
        predictors.

        Parameters
        ----------
        lpr : array-like (length must be divisible by `ncut`)
            The linear predictors

        Returns
        -------
        prob : array
            Probabilities, or expected values
         N/A expval N/A N/A np exp lpr N/A denom N/A 1 N/A N/A N/A N/A np reshape expval N/A N/A N/A len expval N/A self ncut N/A self ncut sum 1 N/A denom N/A N/A np kron denom N/A N/A np ones N/A self ncut dtype N/A np float64 N/A prob N/A expval denom N/A prob N/A N/A _Multinomial N/A N/A families Family N/A N/A 
    Pseudo-link function for fitting nominal multinomial models with
    GEE.  Not for use outside the GEE class.
     N/A links N/A _MultinomialLogit N/A variance N/A varfuncs binary N/A safe_links N/A _MultinomialLogit __init__ N/A N/A self nlevels N/A N/A N/A 
        Parameters
        ----------
        nlevels : integer
            The number of distinct categories for the multinomial
            distribution.
         N/A N/A N/A self initialize nlevels N/A initialize N/A N/A self nlevels N/A N/A N/A N/A self ncut N/A nlevels 1 N/A N/A self link N/A _MultinomialLogit N/A self ncut N/A N/A statsmodels.discrete.discrete_margins _get_margeff_exog _get_const_index _check_margeff_args _effects_at margeff_cov_with_se _check_at_is_all _transform_names _check_discrete_args _get_dummy_index _get_count_index GEEMargins N/A object N/A N/A 
    Estimated marginal effects for a regression model fit with GEE.

    Parameters
    ----------
    results : GEEResults instance
        The results instance of a fitted discrete choice model
    args : tuple
        Args are passed to `get_margeff`. This is the same as
        results.get_margeff. See there for more information.
    kwargs : dict
        Keyword args are passed to `get_margeff`. This is the same as
        results.get_margeff. See there for more information.
     __init__ N/A N/A self results args kwargs N/A N/A N/A N/A N/A self _cache N/A resettable_cache N/A N/A self results results N/A N/A N/A self get_margeff args kwargs N/A _reset N/A N/A self N/A N/A N/A N/A self _cache N/A resettable_cache N/A tvalues N/A N/A self N/A N/A N/A N/A _check_at_is_all N/A self margeff_options N/A N/A N/A self margeff N/A self margeff_se N/A cache_readonly summary_frame N/A N/A self alpha N/A 0.05 N/A N/A 
        Returns a DataFrame summarizing the marginal effects.

        Parameters
        ----------
        alpha : float
            Number between 0 and 1. The confidence intervals have the
            probability 1-alpha.

        Returns
        -------
        frame : DataFrames
            A DataFrame summarizing the marginal effects.
         N/A N/A _check_at_is_all N/A self margeff_options pandas DataFrame N/A names N/A N/A _transform_names N/A N/A N/A self margeff_options N/A method Std. Err. z Pr(>|z|) Conf. Int. Low Cont. Int. Hi. N/A ind N/A N/A N/A N/A N/A N/A self results model exog var 0 0 N/A exog_names N/A N/A N/A self results model exog_names N/A var_names N/A name N/A N/A i name N/A enumerate exog_names N/A ind N/A i N/A table N/A N/A np column_stack N/A N/A self margeff N/A self margeff_se N/A self tvalues N/A self pvalues N/A N/A self conf_int alpha N/A N/A DataFrame table columns names index var_names N/A pvalues N/A N/A self N/A N/A N/A N/A _check_at_is_all N/A self margeff_options N/A N/A N/A N/A N/A stats norm sf N/A N/A np abs N/A self tvalues 2 N/A cache_readonly conf_int N/A N/A self alpha N/A 0.05 N/A N/A 
        Returns the confidence intervals of the marginal effects

        Parameters
        ----------
        alpha : float
            Number between 0 and 1. The confidence intervals have the
            probability 1-alpha.

        Returns
        -------
        conf_int : ndarray
            An array with lower, upper confidence intervals for the marginal
            effects.
         N/A N/A _check_at_is_all N/A self margeff_options N/A me_se N/A self margeff_se N/A q N/A N/A N/A stats norm ppf N/A 1 N/A alpha 2 N/A lower N/A N/A self margeff N/A q me_se N/A upper N/A N/A self margeff N/A q me_se N/A N/A N/A np asarray N/A lzip lower upper N/A summary N/A N/A self alpha N/A 0.05 N/A N/A 
        Returns a summary table for marginal effects

        Parameters
        ----------
        alpha : float
            Number between 0 and 1. The confidence intervals have the
            probability 1-alpha.

        Returns
        -------
        Summary : SummaryTable
            A SummaryTable instance
         N/A N/A _check_at_is_all N/A self margeff_options N/A results N/A self results N/A model N/A results model N/A title N/A N/A N/A model __class__ __name__  Marginal Effects N/A method N/A N/A self margeff_options N/A method N/A top_left N/A N/A Dep. Variable: N/A N/A model endog_names N/A Method: N/A method N/A At: N/A N/A N/A self margeff_options N/A at statsmodels.iolib.summary Summary summary_params table_extend N/A exog_names N/A N/A model exog_names N/A N/A smry N/A Summary N/A N/A _ const_idx N/A _get_const_index N/A model exog N/A N/A const_idx None N/A N/A N/A N/A exog_names pop const_idx N/A J N/A int N/A getattr model J 1 N/A N/A J 1 N/A N/A N/A yname yname_list N/A N/A results _get_endog_name N/A model endog_names None all True N/A N/A yname N/A model endog_names N/A yname_list N/A yname N/A N/A N/A smry add_table_2cols self gleft top_left gright N/A yname yname xname exog_names title title N/A table N/A N/A conf_int N/A N/A self conf_int alpha N/A margeff N/A self margeff N/A margeff_se N/A self margeff_se N/A tvalues N/A self tvalues N/A pvalues N/A self pvalues N/A N/A J 1 N/A N/A eq N/A range J N/A N/A restup N/A results N/A margeff N/A N/A N/A eq N/A margeff_se N/A N/A N/A eq N/A tvalues N/A N/A N/A eq N/A pvalues N/A N/A N/A eq N/A conf_int N/A N/A N/A N/A eq N/A tble N/A summary_params restup yname N/A yname_list N/A eq xname exog_names alpha alpha use_t False skip_header True N/A N/A tble title N/A yname_list N/A eq N/A header N/A N/A _transform_names N/A method std err z P>|z| N/A [%3.1f%% Conf. Int.] N/A 100 N/A alpha 100 N/A N/A N/A tble insert_header_row 0 header N/A N/A N/A table append tble N/A table N/A table_extend table keep_headers True N/A N/A restup N/A results margeff margeff_se tvalues pvalues conf_int N/A table N/A summary_params restup yname yname xname exog_names alpha alpha use_t False skip_header True N/A header N/A N/A _transform_names N/A method std err z P>|z| N/A [%3.1f%% Conf. Int.] N/A 100 N/A alpha 100 N/A N/A N/A table insert_header_row 0 header N/A N/A N/A N/A smry tables append table N/A smry N/A get_margeff N/A N/A self at method atexog dummy count N/A overall dydx None False False N/A N/A N/A N/A self _reset N/A method N/A N/A method lower N/A at N/A N/A at lower N/A N/A _check_margeff_args at method N/A N/A self margeff_options N/A dict method method at at N/A results N/A self results N/A model N/A results model N/A params N/A results params N/A exog N/A N/A N/A model exog copy N/A N/A effects_idx const_idx N/A _get_const_index exog N/A dummy N/A N/A N/A _check_discrete_args at method N/A N/A dummy_idx dummy N/A _get_dummy_index exog const_idx N/A N/A dummy_idx None N/A count N/A N/A N/A _check_discrete_args at method N/A N/A count_idx count N/A _get_count_index exog const_idx N/A N/A count_idx None N/A exog N/A _get_margeff_exog exog at atexog effects_idx N/A effects N/A N/A model _derivative_exog params exog method dummy_idx count_idx N/A effects N/A _effects_at effects at N/A N/A at all N/A N/A N/A self margeff N/A effects N/A N/A N/A effects_idx N/A N/A N/A margeff_cov margeff_se N/A margeff_cov_with_se model params exog N/A N/A results cov_params at N/A model _derivative_exog dummy_idx count_idx method 1 N/A N/A self margeff_cov N/A N/A margeff_cov N/A effects_idx N/A N/A N/A effects_idx N/A N/A self margeff_se N/A margeff_se N/A effects_idx N/A N/A self margeff N/A effects N/A effects_idx N/A N/A