Home ยป r

r

Met cijfers aan de slag om het succes van Vlaams Belang te verklaren

  • by
Als de leden van de partijen akkoord gaan, dan schiet de Vlaamse Regering woensdag uit de blokken. Het inburgeringsbeleid wordt strenger gemaakt: Jambon-I maakt het moeilijk, of quasi-onmogelijk, voor internationale migranten om aanspraak te kunnen doen op een sociale woning, de eerste tien jaar van hun verblijf in Vlaanderen. Daarmee… Read More »Met cijfers aan de slag om het succes van Vlaams Belang te verklaren
t test in r

The t-test in R revisited

  • by
A two-sample t-test (aka an independent t-test or student’s t-test) is most often used to compare the means of two samples. For example: you might be checking if black cats, on average, have the same body weight as white cats. In this blog post I explain how to do a… Read More »The t-test in R revisited
the device does not recognize the command

Solve ‘The device does not recognize the command’ when saving a file in RStudio

  • by
The following error message is something that me and my colleagues keep running into when using Rstudio. ‘Error Saving File — The device does not recognize the command’ There are multiple things that cause this, but basically it’s because RStudio is having troubles writing to the file. Here’s what you… Read More »Solve ‘The device does not recognize the command’ when saving a file in RStudio
kmeans store in r and kcca

Storing a K-means model in R

  • by
K-means clustering is quick and dirty and generally provides some interesting results. However, the default kmeans function in R lacks features, such as actually storing the model to use the centroids for prediction purposes on unseen data. That’s where flexclust comes in. Flexclust is a package that is designed around… Read More »Storing a K-means model in R