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(values) Return the Empirical CDF of an array as a step function.
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(fn, x, **keywords[, ...]) Given a monotone function x (no checking is done to verify monotonicity)
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

sm.stats.moment_helpers.mvsk2mnc

Next topic

sm.tools.tools.add_constant

This Page