Logo

Tools

Module Reference

add_constant(data[, prepend]) This appends a column of ones to an array if prepend==False.

The following are mostly helper functions that are not separately tested or insufficiently tested.

categorical(data[, col, dictnames, drop]) Returns a dummy matrix given an array of categorical variables.
ECDF(*args, **kwds) statsmodels.tools.tools.ECDF is deprecated, use statsmodels.distributions.ECDF instead!
clean0(matrix) Erase columns of zeros: can save some time in pseudoinverse.
fullrank(X[, r]) Return a matrix whose column span is the same as X.
isestimable(C, D) From an q x p contrast matrix C and an n x p design matrix D, checks
monotone_fn_inverter(*args, **kwds) statsmodels.tools.tools.monotone_fn_inverter is deprecated, use statsmodels.distributions.monotone_fn_inverter instead!
rank(X[, cond]) Return the rank of a matrix X based on its generalized inverse,
recipr(X) Return the reciprocal of an array, setting all entries less than or equal to 0 to 0.
recipr0(X) Return the reciprocal of an array, setting all entries equal to 0 as 0.
unsqueeze(data, axis, oldshape) Unsqueeze a collapsed array

Table Of Contents

Previous topic

statsmodels.stats.moment_helpers.mvsk2mnc

Next topic

statsmodels.tools.tools.add_constant

This Page