Durbin Watson Test - How to perform Durbin Watson Test in R - Interpretation

Опубликовано: 18 Август 2026
на канале: Data analyst
2,044
27

Durbin Watson Test
How to perform Durbin Watson Test in Rstudio?
Explanation of Durbin Watson Test
Interpretation of results of Durbin Watson Test

library(readxl)
Import excel data
Install package plm

Hi Hellow
Welcome to the Data Analyst YouTube channel.
Today we are going to learn about the Durbin Watson test and how to perform the test via using RStudio

as well as how to interpret the Durbin Watson test results

These are the objectives for today's session.

So let's move on to the video.
What is the Durbin Watson test?
These are the hypothesis for Durbin Watson test

Let's see how to perform the Durbin Watson test in Rstudio.

This is the interface of R Studio. Don't be confused by the colour. It usually starts with a white background. I have changed the colour to my choice.
Installing the readxl package is required to export Excel data.
You have to add the installed package into the rstudio worksheet and, therefore, you have to type the library syntax.
Now we are going to import our excel data.
Here is our data set.
We have to install another package named openxsls to open the excel data.
You have to add the package using library syntax like previously.
attached your data set by using attach syntax
type here your data set name
install the plm package for the analysis.
Add plm package into your worksheet
You have to create a pdata set. This is the way to create a pdata set.
These are the syntaxs to perform the Durbin Watson test.
First, in here you have to put your dependent variable. After that, put all of your independent variables.
According to the output results, the p value is 0.1301. The p value is greater than 0.05. If the p value is greater than 0.05, we can accept the null hypothesis. Therefore, auto correlation is there.


I hope you got an idea about the Durbin Watson test and how it is applied and how it is interpreted.
If you're interested in my videos, please click the subscribe button to watch my other videos and if you like my video, give me a thumbs up.
I'll catch you in the next video.


Song: Jarico - Island Music supported by #BackgroundMusicWithoutLimitations @Background Music Without Limitations https://bit.ly/2XoXFnb_______________... Recommended playlists:All No Copyright Background Music in one playlist:https://www.youtube.com/playlist?list... Music | No Copyright Background Musichttps://www.youtube.com/playlist?list... Music | No Copyright Background Musichttps://www.youtube.com/playlist?list... Spotify playlists I am currently listening ❤️:Best Dance Music 2022 - https://open.spotify.com/playlist/7Et... Summer Tracks 2022 - https://open.spotify.com/playlist/6Nv... Workout Music 2022 - https://open.spotify.com/playlist/2R9... Dance - https://open.spotify.com/playlist/1rV... #BackgroundMusicWithoutLimitations