More PubMed data mining: looking at top 20 CBT journals

[This article was first published on R Psychologist » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Introduction

Continuing from what I wrote in my article An R Script to Automatically download PubMed Citation Counts By Year of Publication, I’ve now looked at article counts for journals. I did this by extending my script to download the complete article records in XML from inside R. Then I simply extracted journal names from each article and counted how many times different journal occurred. What’s cool about my new script is that it’s possible to extract any PubMed field; so more data will surely follow in subsequent articles.

Specifically, I looked at journals related to Cognitive Behavior Therapy. I did tree searches, one for 2010, one for 2011 and lastly one for the total year range. By doing this I could visualize which journals had the most publications in total and compare that to recent years.

The query

I didn’t care to use a really comprehensive query, as I was more interested in testing my script. Nonetheless, the base query looked like this:
“cognitive behavior therapy” OR “cognitive behavioral therapy” OR “cognitive therapy”

Results

The total number of hits for all years was 14342 hits, from which I extracted 1667 different journals. After extracting the top 20 journals with the most publications over time I made these two graphs.

Top 20 Cognitive Behavior Therapy journals by PubMed citation count

As you can see the Journal of Consulting and Clinical Psychology has had the most publications over time, but Behavior Research and Therapy has had more publications in recent years. This is not really that surprising, since the Journal of Consulting and Clinical Psychology has existed since 1937 whilst Behavior Research and Therapy started out in 1963.

Where’s the R code?

My intention is always to include my complete R code to my posts, but I didn’t have time to clean up the code today. But until I post my code, please play around with my original script to look at annual PubMed citations.

Update! Here’s the R script: How to download complete XML records from PubMed and extract data

To leave a comment for the author, please follow the link and comment on their blog: R Psychologist » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)