Table Of Contents

Previous topic

algorithms.statistics.onesample

Next topic

algorithms.statistics.rft

This Page

algorithms.statistics.regression

Module: algorithms.statistics.regression

Inheritance diagram for nipy.algorithms.statistics.regression:

This module provides various convenience functions for extracting statistics from regression analysis techniques to model the relationship between the dependent and independent variables.

As well as a convenience class to output the result, RegressionOutput

Classes

AREstimator

class nipy.algorithms.statistics.regression.AREstimator(model, p=1)

A class that whose instances can estimate AR(p) coefficients from residuals

__init__(model, p=1)
Parameters:
coordmap : TODO

TODO

model : TODO

A scipy.stats.models.regression.OLSmodel instance

p : int

Order of AR(p) noise

ArrayOutput

class nipy.algorithms.statistics.regression.ArrayOutput(img, fn)

Bases: nipy.algorithms.statistics.regression.RegressionOutput

Output an array from a GLM pass through data.

By default, the function called is output_resid, so residuals are output.

__init__(img, fn)

RegressionOutput

class nipy.algorithms.statistics.regression.RegressionOutput(img, fn, output_shape=None)

A class to output things in GLM passes through arrays of data.

__init__(img, fn, output_shape=None)
Parameters:img : the output Image fn : a function that is applied to a scipy.stats.models.model.LikelihoodModelResults instance

RegressionOutputList

class nipy.algorithms.statistics.regression.RegressionOutputList(imgs, fn)

A class to output more than one thing from a GLM pass through arrays of data.

__init__(imgs, fn)
Parameters:imgs : the list of output images fn : a function that is applied to a scipy.stats.models.model.LikelihoodModelResults instance

TOutput

class nipy.algorithms.statistics.regression.TOutput(contrast, effect=None, sd=None, t=None)

Bases: nipy.algorithms.statistics.regression.RegressionOutputList

Output contrast related to a T contrast from a GLM pass through data.

__init__(contrast, effect=None, sd=None, t=None)

Functions

nipy.algorithms.statistics.regression.output_AR1(results)
Compute the usual AR(1) parameter on the residuals from a regression.
nipy.algorithms.statistics.regression.output_F(results, contrast)
This convenience function outputs the results of an Fcontrast from a regression
nipy.algorithms.statistics.regression.output_T(contrast, results, effect=None, sd=None, t=None)
This convenience function outputs the results of a Tcontrast from a regression
nipy.algorithms.statistics.regression.output_resid(results)
This convenience function outputs the residuals from a regression