Blog Archives

The Hitchhiker’s Guide to Ggplot2 in R

August 13, 2017
By
The Hitchhiker’s Guide to Ggplot2 in R

Published: 2016-11-30 Updated: 2017-08-14 "Any bleeder knows that books are never finished, only abandoned." César A. Hidalgo About the book You can find the book here. In the last update we changed many parts of the code, doing a necessary t...

Read more »

Install GNU and non-GNU Tools via Homebrew

Why should you do this? On Install R and Python via Homebrew I described some potential problems when using R or Python libraries. After doing a fresh OS X install I had some problems with \(\LaTeX\) and XQuartz. The root of the problem is directories location that is easily solved with Homebrew as it doesn't touch the system and provides symlinks...

Read more »

R and GNU tools via Homebrew

Original posted on 2017-01-08Updated posted on 2017-07-12 Introduction A few months ago I needed to use stock Python. One way to achieve that, and not to use OS X provided version, is to install it using Homebrew. Why I needed that? Python packages installed via pip were not recognised. In recent weeks I needed to compile R packages using linear algebra libraries....

Read more »

Install R and Python via Homebrew

Original posted on 2017-01-08Updated posted on 2017-07-12 Why should you do this? With a single brew upgrade you can save yourself a headache and valuable time when you need newer software versions. Besides that, R binaries from CRAN and OS X stock Python can give problems with different libraries. Here are some examples of unexpected situations of the mentioned versions: I built...

Read more »

Working With SPSS© Data in R

Working With SPSS© Data in R

Introduction I was in need of importing SPSS© data for work. There are some options but I've used both foreign and haven R packages. I prefer haven because it integrates better with R's tidyverse and started using it in detriment of foreign when I verified it behaves well with factors and solves the deprecated factors labels in newer R versions. The...

Read more »

Text Mining with R: A Tidy Approach

Text Mining with R: A Tidy Approach

About the book This book applies tidy data principles to text analysis. The aim is to present tools to make many text mining tasks easier, more effective, and consistent with tools already in use, and in particular it presents the tidytext R pack...

Read more »

Text Analysis with R for Students of Literature

Text Analysis with R for Students of Literature

About the book I obtained a copy of this book by Matthew Jockers throughout Universities' access from Springer. You can also get a copy from Amazon. This book is short and to the point. I would actually strongly recommend it to anyone interested ...

Read more »

Microeconomic Theory and Linear Regression (Part 2)

April 21, 2017
By
Microeconomic Theory and Linear Regression (Part 2)

Introduction In the first part of this article I explained and compared four different functional forms to model apples' production. This is what I need to retake the previously explained examples: # Libraries #install.packages(c("micEcon","lmtest","bbmle","miscTools")) library(micEcon) library(lmtest) library(stats4) #this is a base package so I don't install this library(bbmle) library(miscTools) # Load data data("appleProdFr86", package = "micEcon") data = appleProdFr86 rm(appleProdFr86) data$qCap = data$vCap/data$pCap data$qLab = data$vLab/data$pLab data$qMat = data$vMat/data$pMat # Fit models ## Linear specification prodLin = lm(qOut...

Read more »

Microeconomic Theory and Linear Regression (Part 1)

April 14, 2017
By
Microeconomic Theory and Linear Regression (Part 1)

Introduction Last week I found a lot of materials I used as teaching assistant. Among those materials I found some class notes from Arne Henningsen, the author of micEcon R package. I'll use that package and some others to show some concepts from Microeconomic Theory. Packages installation: #install.packages(c("micEcon","lmtest","bbmle","miscTools")) library(micEcon) library(lmtest) library(stats4) #this is a base package so I don't install this library(bbmle) library(miscTools) From package's help: "The appleProdFr86 data frame...

Read more »

Microeconomic Theory and Linear Regression (Part 1)

April 14, 2017
By
Microeconomic Theory and Linear Regression (Part 1)

Introduction Last week I found a lot of materials I used as teaching assistant. Among those materials I found some class notes from Arne Henningsen, the author of micEcon R package. I'll use that package and some others to show some concepts from Microeconomic Theory. Packages installation: #install.packages(c("micEcon","lmtest","bbmle","miscTools")) library(micEcon) library(lmtest) library(stats4) #this is a base package so I don't install this library(bbmle) library(miscTools) From package's help: "The appleProdFr86 data frame...

Read more »

Search R-bloggers


Sponsors

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)