6 simple steps to design, run and read a logistic regression analysis

Image for post
Image for post
From Pexels by Lukas

In previous tutorials, we approached basic descriptive statistics. Now, we will take the next step, inferential analysis using regression to study association.

In this tutorial, we will run and interpret a linear regression analysis using Stata.

Before we get started…

For more on the fundamentals behind a linear regression analysis check this post

For more on descriptive analysis using Stata check this post

Now, let’s roll the numbers (and open our data)!

1. Open the dataset

Let’s revisit the publically available version of the Framingham heart study from https://www.kaggle.com/amanajmera1/framingham-heart-study-dataset/version/1

First Download the file to your computer

Then go to Stata and open the file via the following options (the easiest way)

File -> Import -> Text data…


6 simple steps to design, run and read a linear regression analysis

Image for post
Image for post
From Pexels by Lukas

In this tutorial we will cover the following steps:

For more on the fundamentals behind a linear regression analysis check this post

For more on descriptive analysis using RStudio check this post

1. Open the dataset

We are going to extract a publically available version of the Framingham heart study from;

https://www.kaggle.com/amanajmera1/framingham-heart-study-dataset/version/1

On this website, you can also consult the coding for the different variables. For example, regarding gender (variable male; male=1 means male and male=2 means female)

First Download the file to your computer.

Then go to RStudio and open the file via the following options (this is the easiest way)

File -> Import Dataset -> From Text (base) (this is a…


6 simple steps to design, run and read a linear regression analysis

Image for post
Image for post
From Pexels by Lukas

In previous tutorials, we approached basic descriptive statistics. Now, we will take the next step, inferential analysis using regression to study association.

In this tutorial, we will run and interpret a linear regression analysis using Stata.

In this tutorial we will cover the following steps:

Before we get started…

For more on the fundamentals behind a linear regression analysis check this post

For more on descriptive analysis using Stata check this post

Now, let’s roll the numbers (and open our data)!

1. Open the dataset

Let’s revisit the publically available version of the Framingham heart study from https://www.kaggle.com/amanajmera1/framingham-heart-study-dataset/version/1

First Download the file to your computer

Then go to Stata and open the file via the following options (the easiest way)

File -> Import -> Text data…


Without a strategy, you lost before you started

Image for post
Image for post
from Pexels by Vlada Karpovich

In my career in clinical research, I have realized, with the help of great mentors and some costly mistakes, that research is not a random game. There should be a plan, a chart, a strategy, to avoid (or at least lessen) future headaches.

Just like a chess game, there are some core rules one cannot forget. This list could be infinite but let’s talk about the top 8 fundamental rules that I wished I have mastered sooner.

1) Develop your pieces — A single finished project outperforms 1,000 ideas

Moving your Knight back and forth will not develop your game. You need to break…


How to plan your data analysis

Image for post
Image for post
by Andrea Piacquadio from Pexels

You have a great research idea and you have a very broad idea of how to get the project done. However, while writing your statistical analysis plan, once again, you end up stuck in the “statistics” section. Then, you waste long hours checking GitHub and Reddit threads and watching jargon-full YouTube tutorials. With a headache, once again, you procrastinate and jump to the next thing.

You are not alone…

This article shares some simple steps on how to plan your data analysis by anticipating what you want to “show” in the final work (manuscript, poster, oral communication, you name it!).

These steps are

1…


Why “p-value<0.05” is not enough

Image for post
Image for post
by Lum3n from Pexels

The interpretation of p-value is one of the most misunderstood subjects in science and statistics, not only by the general public but also for Academia. This leads to low-quality publications and misleading news, with a consequent distrust in Science. Just stating “p<0.05 = good” and “p-value≥0.05 = bad” is a dangerous oversimplification.

This article tries to debug some concepts, focusing on:

  1. Data distribution and description
  2. Hypothesis testing
  3. The value of the p-value
  4. Practical limitations of the p-value
  5. How to choose the test to calculate the p-value?

1. Data distribution and description

Let’s take, for example, the height in adult men vs women. Empirically, we all…


The fundamentals behind linear regression

Image for post
Image for post
From Pexels by rodolfoclix

A classic taximeter is a linear regression machine. Right after you sit on the backseat and close the door the taximeter starts doing its math.

Here, image a linear regression function, where the xx axis represents the distance in Km, or independent variable, and the yy axis represents price in EUR (€), our dependent variable.


A step by step guide for the Clinician using the Framingham cohort

Image for post
Image for post
By Kaboompics .com from pexels

This short exercise shows some simple concepts on biostatistics using the specialized software Software (in this case we are using Stata15, but the syntax should work with other versions).

After completing the installation open your Stata. Then go to the console and try the following exercises:

NOTE: For all commands, the italics (like “age” inside summary(age)) represent the variable name, which can be replaced anytime

1. Open dataset

We are going to extract a publically available version of the Framingham heart study from

https://www.kaggle.com/amanajmera1/framingham-heart-study-dataset/version/1

First Download the file to your computer

Then go to Stata and open the file via the following options…


A step by step guide for the Clinician using the Framingham cohort

Image for post
Image for post
By Kaboompics .com from pexels

Are you tired and lost after reading many complex introductions to R and RStudio that go into deep mathematics and programming?

Do you have a research question and even a dataset but have no idea on how to “run the numbers” on R?

I have been there before. And here is a short step by step guide on home to answers to your clinical questions.

This short exercise shows some simple concepts on biostatistics using RStudio.

First go to https://www.r-project.org/ to download R and then, to https://rstudio.com/ to download the RStudio environment (based on R). All are freeware.

The Framingham…


Let’s face it and change it with a 4 steps approach

Let’s focus on the harsh truth. In order to live up only from passive income investing (such as real estate rent, dividend income, interest from bonds/loans) you need to already have a massive amount of money ready to invest.

Sometimes your income is just not enough to retire early. No matter how hard you save and cut expenses.

As if that wasn’t bad enough, sometimes you just don’t have enough time to build some successful business from scratch.

  • Step 1: Hustle is what brings you money — Just think…

Santiago Rodrigues Manica

Physician, epidemiology enthusiast, and entrepreneur. Learning every day. Fueled by curiosity and challenges @R_M_Santiago #Lisbon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store