Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab Help >> Statistics > Regression > regress

regress

regression coefficients of two variables. This function is obsolete.

Calling Sequence

coefs=regress(x,y)

Arguments

x,y

real or complex vector

Description

This function computes the regresion coefficients of two variables x and y, both numerical vectors of same number of elements n. coefs=[a b] be a 1x2 matrix such that Y=a+bX will be the equation of the ordinary least square approximation to our data.

This function is obsolete.
It is better to use reglin instead of regress.

References

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.

Examples

x=[0.5608486 0.6623569 0.7263507 0.1985144 0.5442573 0.2320748 0.2312237]
y=[0.3616361 0.2922267 0.5664249 0.4826472 0.3321719 0.5935095 0.5015342]
coefs=regress(x,y)

See Also

  • reglin — Linear regression
  • covar — covariance of two variables

History

VersionDescription
5.5.0 Function tagged as obsolete. Will be removed in 5.5.1. Please use reglin instead.
Report an issue
<< Regression Regression Sampling >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:06:53 CEST 2014