Using R to Analyze COVID-19 | R Programming Project
HTML-код
- Опубликовано: 10 окт 2024
- In this video, we saw how to use the R programming language to perform statistical analysis on the COVID-19 (coronavirus) dataset. This is the second video in the R introduction for beginners series. This video is meant to be a R programming tutorial where I show you the basic of importing a dataset and performing data analysis. You will find many useful links below to help you follow along and improve on this R project.
If you enjoyed this video, please make sure to subscribe to the channel for similar videos!
Installing RStudio and R Basics: • Video
Kaggle Page Link: www.kaggle.com...
Data Link: www.kaggle.com...
Code: github.com/tec...
Accompanying Article: towardsdatasci...
normally i wouldn't get any of this and my appreciation for this type of content would have been zero, but now that i need help with my college internship i should say that you are doing god's work. thanks a ton for the help.
Fghj
I REALLY appreciate you uploading this example. I recently started to learn R, but I have a hard time understanding the basics without seeing the larger application. This is tremendously helpful!
Glad it was helpful! I am not a pro by any means, but happy to share what I know
how is your r so fur?
2:40
for those who are new like me and did not understand line number 7, according to documentation: "as.integer attempts to coerce its argument to be of integer type". Meaning whenever the condition inside the argument is FALSE it will be coerced to integer 0 and if it's TRUE then 1. Thus a column of 0 and 1 values is made.
Very true! Thank you for helping others!
But wasn't that regarding a date in that column? A date probably means someone died on that date and if the command detects the cell as false, wouldn't that inaccurately place a 0?
@@divinepiggie7307 inside of the as.integer() function is data$death != 0, which means "if the number is NOT zero, [which is TRUE for dates], then set it to 1"
This is my 2nd day learning R as a new language and indeed learn so much in just an hour from your easy-to-follow tutorial. Thanks so much!!!
Thank you for the comment! And thank you for watching!
This is is great please do more of these , I'm fairly new to R and I'm trying out simple projects such as the one you've just done and they are pretty helpful 💯.
Next time consider doing some plots that would really help.
Thank you.
Thank you! I have been learning about t.test but they haven't showed me how it can be used in scripting. This clarified it so simple.
Completed! Completed! Completed!!! 🎉❤
Completed my first ever project on R, great explanation, thanks for this great video! Would love to watch more of these videos ❤
Dude I love how you made this video concise and loaded. 👊🏾👊🏾👊🏾👊🏾
Glad you liked it!
The way u explained is very good sir,it is helpful for me sir.Thank you very much sir for explaining. Do more videos about/using R sir.
Thanks for this. I want to start learning R and it’s good to see a use case in action of it
You’re welcome!
How wonderful example💐Thank you alot. I think we need more video about R practice via your explanation
Thank you!
could u teach us how to do a logistic model with that data base, thx great video
Happily subscribing your channel. Expecting more Videos on analysis using R-Programming
Amazing explanation, i understand totally.
Thank you
Im glad i took business statistics 1 and 2 in school so i can understand what you are doing. I guess my only question is what types of data corresponds to what statistical test to run? You used a t-test, but when do i run an anova table or a regression line?
Cordial greetings, in advance I hope you are in good health, just like your family. Thanks for your video, but I have a question: I would like to know how, through the R language and some bookstores, I could predict or obtain a probability of contagion to the neighboring towns of my city. I mean that if my city is marked with infected, how do I obtain graphically or probabilistically the probability that the neighboring towns to my city are infected, taking into account that today they are not. I hope you give me some light on this concern. Thank you.
Thank you, GREAT TUTORIAL!
You are really good explainer man.
Really precise explanation. Good work
Thanks!
Great tutorial, thanks for sharing!
bro love the u made can u tell how to start learning from basics in order to be a good scientist and learning R language plzz
plz upload more videos like this... there is very less content of ml practice with R.
Thanks ,I learned a lot from this
Glad it was helpful!
Good stuff, Thanks
amazing!
great explaination!
i have a dataset containing time period, I want to categorise it into early morning, morning, mid-day, afternoon, evening...
kindly suggest me a line of code for it..
Thank you so much, can you make a video for data visualization using same csv on r studio
Thanks for watching!
Neat
Thanks! Let me know if you have any feedback!
Thanks for the video! In a "real world" analysis, how would you go regarding co-founding variables? For example: are mens older than women, thus when you do gender analysis you are actually measure the age effect? Would you do propensity score?
There are ways to do this but the most common is to perform a least-squares / linear regression where you control for each of the characteristics so that you understand the effect of gender controlling for age, or occupation, or income level, etc.
Exactly - if we have additional data for confounding variables, we can just include them in the regression. If we do not have that data, we might get omitted variable bias
Great Explained.
This was SO awesome
Great that you liked it!
How did you cleaned the data, I mean, u took dummy variable where death is not equal to zero, so ideally ur eliminating all the values eqaul to zero and considering the dates ??
By using data$death!=0, R gives you only True and False values. These values are the result of testing whether the values are different to 0 (True if they are different and False otherwise) . So, when you add as.integer you are basically converting those true values into 1 and those false values into 0. I hope this helps.
@@jhontreyesalbarracin9479 thanks for reply jhon.. yes it helped..
When I run the script ending in 'describe(data)' nothing happens. What's wrong? I have the latest version of RTools installed on my C drive.
I am having the same problem ....
Same
Thank you! But why am I unable to find the link to the article?
Updated the description - thanks for pointing this out! towardsdatascience.com/r-tutorial-analyzing-covid-19-data-12670cd664d6
hi,, above link to the kaggle doesn't work.It also goes to download directly.
👏🏻👏🏻
Thank you!
Can we apply a data science algorithm on this? And if yes then particularly which algorithm?
When I am running the mean command exactly as what you told, I am getting error message stating-Argument is not numeric or logical:returning NA. Plz help me in solving this problem. Thanks
Could you make the video of fake news detection using r language
Nice video, but I didn't understand why did you do sum(death_dummy)/nrows for calculating death rate
that signifies total deaths{sum(death_dummy)} divided by total population{nrows} to give a rate
Can you help me ???...How can we apply functional autoregressive (FAR) Model on this data???
Error in data$death : object of type 'closure' is not subsettable
awesome
thank you!!
Thank you for that, but video should be more slower to understand clearly
Noted!
good
What happens when I click on "DON'T CLICK THIS" link ? I'm very curious to know, so please tell me
It opens a prompt that asks you to subscribe 😂 doesn’t work if you’re subscribed already :)
@@TechTribeCommunity 😂😂😂
is it example of handling improper dataset?
Can we apply any regression model to this dataset? If possible, How?
In t.test the degree of freedom 72.234 which is incorrect, df should be 841
bro are you doing a speedrun holy shit
It is giving me error
Error in `$
could you make a graph to represent it?
Can you tell me how to find the link to the code?
In the video description!
How do I plot this in a graph? I want to visualize the death rate in men and women.
wowwww
Thanks for watching!
Hi, can you help me on High value customers identification for an E-Commerce company
thanks bro
You’re welcome!
can you explain what is death_dummy?
Do this code run on rgui too?
How do I learn this? It seems cool
Online tutorials are the way to go!
How to plot them to a graph??
like ggplot()?,could you help :/
dude please reply @Tech_Tribe,or anyone if you could help
@Shridnyan Haval hey thanks but I actually saw some other tutorials and was able to learn , anyways thanks alot :)
I have same project can u help me
Sir plz give csv file link
Thanks for watching! Here is the link (also in the video description): www.kaggle.com/sudalairajkumar/novel-corona-virus-2019-dataset/version/25
Why he speak so fast? Very hard to understad
slow your speed.
MAN USE PLAYBACK SPEED IN UR UTUBE.
How did you know that 0.08461538 was the death rate for men when you typed out the following code: mean(men$death_dummy, na.rm = TRUE) ? I did not know that death_dummy gave you the death rate. I thought death_dummy just dummy coded the death variable and that the following code: sum(data$death_dummy)/ nrow(data) gave you death rate.
Good question! Both of those are equivalent. Suppose we have death_dummy as [0 0 1 0 1] for 5 men. This means that 2 died, and 3 lived, for a death rate of 0.4 (40%). Your formula would calculate 2/5=0.4. Now ask yourself, what is the average death_dummy value? Well, it is 0.4. In other words, your method is just a slightly more verbose way of calculating the mean. Same thing - identical equations.
@@TechTribeCommunity Thank you!! :)
at 2:06 when I execute the function describe(data) the console says Error in describe(data) : could not find function "describe"
same , did u get it fixed ?
I'm having the same error
yeah me too, i think this video is just outdated@@gabrielmedina2480
Could you explain a little bit how to obtain death rate for men with this expression (?)> mean(men$death_dummy, na.rm = TRUE) #8.5%!