Logistic regression in R
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!
Пікірлер: 25
You can find materials supporting this vid (and others) at github.com/equitable-equations/youtube.
@muqadasjaved7751
4 ай бұрын
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"
what if there's more than 2 groups they can fall into?
@EquitableEquations
2 ай бұрын
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.
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)
@EquitableEquations
Жыл бұрын
You read my mind! That's high on my list.
how did you simulate the data and load it as csv? sorry for the newbie question
@EquitableEquations
Жыл бұрын
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.
the GOAT
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?
@EquitableEquations
Жыл бұрын
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.
your videos are the best! Any chance you will do MLM video please?
@EquitableEquations
Жыл бұрын
Great suggestion!
@daniellerobinson3688
11 ай бұрын
@@EquitableEquations I second this!! An MLM video would be exteremly useful.
Thank you!
@EquitableEquations
Жыл бұрын
You got it, man!
Why do we write se = False
But you don't do any testing, which is mandatory to give reliable results for your client!!!
@EquitableEquations
3 ай бұрын
Nope this isn't complete in lots of ways.
interpretation of the results missing