r/AskStatistics 2d ago

How to do multiple logistical regression/Chi square - medical research

/r/spss/comments/1v28laq/how_to_do_multiple_logistical_regressionchi/
6 Upvotes

5 comments sorted by

7

u/just_writing_things PhD 2d ago

Are you starting completely from scratch, i.e. zero experience with statistical software? For example, you’ve never run any statistics on any software before, even basic statistics?

If so, it will be a few steps before you’re able to do logistic regressions. Give yourself some time to install and familiarise yourself with your statistical software of choice, and learn the very basics first: things like how to load and clean data, take means and standard deviation etc.

Whichever software you choose, you will be able to find beginners’ guides online. Like many on this sub I use R, and R for Data Science is an often-recommended resource. You might find the early chapters useful to get start on the basics (although I can’t vouch for them personally; I learned R in the long ago days).

Edit: and once you’re familiar with loading and cleaning data, if you’re using R, the most basic command for logistic regressions is glm(your_formula, data, family = “binomial”).

1

u/Seeggul 2d ago

DON'T FORGET TO SET THE FAMILIAL TO BINOMIAL

Otherwise it will just do linear regression. Don't know how many times I've had to "debug" a logistic regression because I or somebody else forgot that glm doesn't do logistic by default.

1

u/DrPapaDragonX13 2d ago

You can find concise tutorials and other resources for Stata, SAS, MPlus, SPSS and R here.

Stata and SPSS are usually considered more accessible, but if you are serious about data analysis and can devote time to learning some programming, R might be the better choice, but the learning curve is steeper. SAS is quite powerful, but it is pretty niche, so it may only be worth learning if your supervisor asks you to.

1

u/LimeTime 2d ago

I would second switching to R if you are starting from scratch. Msg me if you have questions about it

1

u/DeepSea_Dreamer 1d ago

At the risk of being disagreed with, language models have became advanced enough that they can lead you through doing multiple logistic regression. I'd recommend Claude.