Logistic regression in R
HTML-код
- Опубликовано: 9 май 2023
- Learn how to use R to fit a model to a binary (yes/no) response variable, regardless of whether you have raw data or proportions. If this vid helps you, please help me a tiny bit by mashing that 'like' button. For more #rstats joy, crush that 'subscribe' button!
You can find materials supporting this vid (and others) at github.com/equitable-equations/youtube.
Can you please do multivariate detrended fluctuations analysis or multifractal detrended fluctuations analysis in rstudio?
omg thank you so much, I did almost the whole data analysis course at uni based on your videos😁 amazingly well explained and usable🙏
Amazing, thank you for this video lesson!
thanks a lot always adding something to me
Hope you talk about the {fixest} package, it is very convenient to use this package for regression.
Hi Thanks for the great video!!Do i need to mark the binary variable as binary? Because in R its recognized as "num"
Nice explanation of logistic regression. Even your intentional mistakes created learning opportunities. In a future follow up , may I suggest sharing with the viewer tips as to how to make meaning of the parameters (e.g., reporting log of odds)
You read my mind! That's high on my list.
the GOAT
your videos are the best! Any chance you will do MLM video please?
Great suggestion!
@@EquitableEquations I second this!! An MLM video would be exteremly useful.
how did you simulate the data and load it as csv? sorry for the newbie question
Hi! I'm planning on making vids about simulating data later in the year. You might start by googling "inverse CDF method". You can write a data set to a file with write_csv() and read it back with read_csv(), both from the {readr} package.
Is it necessary to convert binary response variable into "0" and "1". Mine is "Yes" and "No". Is there a better way to convert it?
The response doesn't have to be 0 and 1, but it does have to be a factor with 2 levels. Probably as.factor() is your friend here.
Thank you!
You got it, man!
what if there's more than 2 groups they can fall into?
It's still possible to use logistic regression in that case (for instance with indicator variables), but in practice other techniques tend to be used instead.
Why do we write se = False
interpretation of the results missing
But you don't do any testing, which is mandatory to give reliable results for your client!!!
Nope this isn't complete in lots of ways.