Importing DatesDates can be imported from character, numeric, POSIXlt, and POSIXct formats using the as.Date function from the base package.If your data were exported from Excel, they will possibly be in numeric format. Otherwise, they will m...

Importing DatesDates can be imported from character, numeric, POSIXlt, and POSIXct formats using the as.Date function from the base package.If your data were exported from Excel, they will possibly be in numeric format. Otherwise, they will m...

One critique frequently heard about Bayesian statistics is the subjectivity of the assumed prior distribution. If one is cherry-picking a prior, of course the posterior can be tweaked, especially when only few data points are at hand. For example, see the Scholarpedia article on Bayesian statistics: In the uncommon situation that the data are extensive

About a year ago I posted this video visualization of all the reported accidents involving bicycles in Montreal between 2006 and 2010. In the process I also calculated and plotted the accident rate using a monthly moving average. The results followed a pattern that was for the most part to be expected. The rate shoots up

I was recently contacted by a reader with two very specific questions and I thought that this would be a good topic to publicity respond to. He would like to simulate his data:I have firm level data and the model is discrete choice with the main expla...

e-mails with the latest R posts.

(You will not see this message again.)