fn_regression

Contents

Syntax

[hl cor pvalue] = fn_regression(x,y[,ha][,options...])

Description

Performs linear regression between variables x and y, computes
correlation and p-value
Available options are:
- 'square'        maintain aspect ratio between x and y coordinates
- 'showcorr'      display correlation value
- 'showpvalue'    display p-value
- 'jitter',jit    apply a small jitter to all points (to avoid points on
                  top of each other)
- 'nodisplay'     no display

Source

Thomas Deneux

Copyright 2011-2017