Hello.

On Tue, 30 Oct 2018 12:22:46 +0100, Jonathan MERCIER wrote:
Dear,

Firstly thanks for your amazing libraries.

Currently I am working to port some R code to Java, and I encounter
some difficulties.


What is the equivalent of:

- the R class "lm" ?

*description*:

https://www.rdocumentation.org/packages/stats/versions/3.5.1/topics/lm

- of intercept: Z ~ y-1 or z ~ 1

*R examples:*
Y ~ A          |  Y = βo + β1A     | Straight-line with an implicit
y-intercept
Y ~ -1 + A    | Y = β1A| Straight-line with no y-intercept; that is,
a fit forced through (0,0)
Y ~ A + I(A^2)| Y = βo+ β1A + β2A2| Polynomial model; note that the
identity function I( ) allows terms in the model to include normal
mathematical symbols.

I can guess that some of the equivalent functionality is provided
by the "o.a.c.math4.stat.regression" package:
http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math4/stat/regression/package-summary.html


Regards,
Gilles


Thanks for your help
--

Jonathan MERCIER
Centre National de Recherche en Génomique Humaine (CNRGH)

Researcher computational biology

PhD, Jonathan MERCIER

Bioinformatics (LBI)

2, rue Gaston Crémieux

91057 Evry Cedex

Tel :(33) 1 60 87 83 44

Email :jonathan.merc...@cng.fr <mailto:jonathan.merc...@cng.fr>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to