R has been around for quite many years. R is a free and open statistical programme software that has more users than for Stata. But, R had a reputation that very difficult to learn. I was not the exception. Somehow, I was all right with instant computation like:
a <- 2+3
print(a)
Then everything is jumbled up when function and loop are involved.
Nevertheless, after couple more repeated trials, I learned that R on the system needs to be updated to load the most updated 'tidyverse' that is the magic ingredient to get around R easily. After that, things did not work for me started working.
And the most recent attempt to learn 'tidyverse' showed me the functions that are similar to Stata. That made me understand R better than before. Those functions are:
filter() - similar to 'if a== b' in Stata
group_by() - similar to 'bysort' in Stata (but much versatile in my opinion)
mutate - similar to 'generate' in Stata
Then, graphs generated by ggplot2 is far better than Stata.
Of course, I need to study more to understand the full function of R. But, I am no longer afraid or dread of doing so! I hope that those who gave up on R like me would be encouraged to take up R again.
If I can do it, so can you!
Useful resources:
https://sphweb.bumc.bu.edu
https://r4ds.had.co.nz/intoduction.html
https://stats.idre.ucla.edu/r/seminars/intro/
Let me hear your thoughts.
Comments
Post a Comment