Blog Archives

๐Ÿ–Š R Coding Style Guide

January 13, 2019
By
๐Ÿ–Š R Coding Style Guide

Language is a tool that allows human beings to interact and communicate with each other. The clearer we express ourselves, the better the idea is transferred from our mind to the other. The same applies to programming languages: concise, clear and consistent codes are easier to read and edit. It is especially important, if you have collaborators, which depend...

Read more »

๐Ÿ“ Project-oriented workflow

January 6, 2019
By
๐Ÿ“ Project-oriented workflow

Be honest with yourself, how many times have you wanted to restart an on-going project from scratch throwing away the current folder? Or how many times have you had to rename files and adjust folder structure to make your project simple and clear? Not to mention, all these thousands of versions of your scripts that are dangling around in...

Read more »

๐ŸŒฑ Setting a seed in R, when using parallel simulation

July 11, 2018
By

Generally speaking, if the code does any simulations, it is a good practice to set a seed to make the code reproducible. Setting a seed ensures that the same (pseudo-)random numbers will be generated each time the script is executed. Surprisingly, I found really few posts dedicated to any convention, best practice, or routine of setting a seed in...

Read more »

๐Ÿ’พ Installing MySQL on MacOS (and using it with R)

March 26, 2018
By
๐Ÿ’พ Installing MySQL on MacOS (and using it with R)

A couple of days ago I was asked to install MySQL on MacOS 10.13, and I was surprised that it was not a one-click installation, as in case of R. Unfortunately, even for me a documentation was a bit confusing, and I think it might be useful to have a guide of the installation process.

Read more »

๐Ÿ“ˆ Simulating Poisson process (part 2)

March 12, 2018
By
๐Ÿ“ˆ Simulating Poisson process (part 2)

In previous post we discussed two common methods of Poisson process simulation. The reason why this trivial problem was of my interest is the fact that this is simplification of a larger scale problem of a classical ruin process. Let me remind that I focus on an extenssion of Cramรฉrโ€“Lundberg model with positive jumps, that is:

Read more »

๐Ÿ“ˆ Simulating Poisson process (part 1)

March 8, 2018
By
๐Ÿ“ˆ Simulating Poisson process (part 1)

A couple of weeks ago a colleague of mine asked me for a help to estimate Gerber-Shiu function by Monte-Carlo methods. The function is used in ruin theory for risk processes. One can think about this function as of equialence to a moment generating function. That is if the function is known, it is easy to derive a certain...

Read more »

๐Ÿ“Š Multinomial regression in R

January 23, 2018
By

In my current project on Long-term care at some point we were required to use a regression model with multinomial responses. I was very surprised that in contrast to well-covered binomial GLM for binary response case, multinomial case is poorly described. Surely, there are half-dozen packages overlapping each other, however, there is no sound tutorial or vignette. Hopefully, my...

Read more »

๐Ÿฅ• Dortmund real estate market analysis: data preprocessing with caret

October 24, 2017
By

This is rather a short note, which is more related to an amazing package caret, than to our data set. The package allows for manipulating the model with less typing, for instance cross-validation or data preprocessing can be done by just specifying a couple of arguments in the key function of package train.

Read more »

๐Ÿ”ฌ Dortmund real estate market analysis: neural networks

October 20, 2017
By
๐Ÿ”ฌ Dortmund real estate market analysis: neural networks

At every turn in a non-technical post about AI for broader audience an author deems their duty to mention a deep learning as panacea for all woes. Well, itโ€™s not. Deep learning is just one of various models, which might or might not perform better then the other techniques. At the end of the day, in a nutshell, itโ€™s...

Read more »

๐Ÿ Custom set up of keras and TensorFlow for R and Python

October 19, 2017
By
๐Ÿ Custom set up of keras and TensorFlow for R and Python

About a month ago RStudio published on CRAN a nice package keras. This package is an interface to a famous library keras, a high-level neural networks API written in Python for using TensorFlow, CNTK, or Theano. In this post, the focus is on TensorFlow, as default backend engine developed by Google.

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)