ml icon indicating copy to clipboard operation
ml copied to clipboard

Multiple logistic regression

Open tommedema opened this issue 6 years ago • 2 comments

Really liking this library; thanks!

I'm looking to do multiple logistic regression, where my single dependent variable has a binary outcome: 0 or 1, with multiple explanatory variables (floating numbers).

Is there a mljs library that I can use to accomplish this?

tommedema avatar Jul 27 '18 01:07 tommedema

Hello @tommedema

If your outcome is categorical then you want to look for "classification" algorithm, not "regression".

Do you already know the outcome of you samples? If yes the keyword is "supervised classification". If not "unsupervised classification"

Have a look at the "Supervised learning" and "Unsupervised learning" sections in the ML readme. Some of them are only for regression problems so not a fit for you.

Hope that helps

stropitek avatar Jul 27 '18 08:07 stropitek

@stropitek thanks. The items under "supervised classification" are mostly new concepts to me.

I'm used to doing binomial logistic regression, see https://statistics.laerd.com/spss-tutorials/binomial-logistic-regression-using-spss-statistics.php

From your answer it seems lke the ml library does not support this exact need?

Here is an example implementation of what I am looking for, though that library does not seem to be maintained anymore: https://github.com/jsmlt/jsmlt/blob/master/src/supervised/linear/logistic-regression.js#L18

tommedema avatar Jul 27 '18 14:07 tommedema