ml
ml copied to clipboard
Multiple logistic regression
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?
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 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