Jonathan MERCIER

2018-10-30 11:22:46 UTC

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.

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 :***@cng.fr <mailto:***@cng.fr>

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.

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 :***@cng.fr <mailto:***@cng.fr>