Articles by Bogumił Kamiński

Implementing Circles example

February 4, 2012 | Bogumił Kamiński

This week I reimplemented part of Conic Sections 1 model from NetLogo. In the model turtles seek to to be in target distance from center.My code takes only one center point, so only circles can be obtained. Apart from turtle location plot giv...
[Read more...]

Replicating NetLogo Fire model

January 27, 2012 | Bogumił Kamiński

While preparing for the new semester I have started reimplementing standard NetLogo examples in R. The first is Fire model.The simulation in R is presented here:# Forest matrix trees encoding:# 3 – green, 2 – burning, 1 – burnt, 0 – no treesimu...
[Read more...]

Exercise in grImport

January 13, 2012 | Bogumił Kamiński

Last week I used grImport for the first time. I decided to try perform another exercise using it. The task was to add voivodeship division of Poland.Standard R maps do not contain such a division. I have found it on r-forge in package  m...
[Read more...]

Coat of arms of Poland challenge

January 5, 2012 | Bogumił Kamiński

Last week I have experimented with coloring map of Poland in national colors. Vaidotas Zemlys improved on my effort by adding colors to map of Lithuania and posted a challenge to also add coat of arms to the plot. This proved to be a nice exe...
[Read more...]

Stability of classification trees

December 9, 2011 | Bogumił Kamiński

Classification trees are known to be unstable with respect to training data. Recently I have read an article on stability of classification trees by Briand et al. (2009). They propose a quantitative similarity measure between two trees. The method is i...
[Read more...]

Comparing model selection methods

December 2, 2011 | Bogumił Kamiński

The standard textbook analysis of different model selection methods, like cross-validation or validation sample, focus on their ability to estimate in-sample, conditional or expected test error. However, the other interesting question is to compare the...
[Read more...]

Working with isTRUE

November 25, 2011 | Bogumił Kamiński

This week I was running computations transforming some input files into output files. The problem was that it was a repeated process. If new input files were generated or old ones were updated I needed to calculate new output files. The transformation ...
[Read more...]

randu dataset, part 2

November 19, 2011 | Bogumił Kamiński

In my last post I have plotted randu dataset to show that all its points lie on 15 parallel planes. But I was not fully satified with the solution and decided to show this numerically.It can be done in four steps:identifying four points lying...
[Read more...]

Plotting randu dataset

November 18, 2011 | Bogumił Kamiński

Recently I have stumbled on help description of randu data from datasets package. It contains pseudorandom numbers that are flawed. Help says that "In three dimensional displays it is evident that the triples fall on 15 paralle...
[Read more...]

Factor to class-membership matrix

November 4, 2011 | Bogumił Kamiński

Recently on R-bloggers I found a post from chem-bla-ics blog concerning conversion of factors to integer vectors. At the end it stated a problem of conversion of factor variable to class-membership matrix. In comments several nice solutions were p...
[Read more...]

Plotting gain chart

October 29, 2011 | Bogumił Kamiński

Gain chart is a popular method to visually inspect model performance in binary prediction. It presents the percentage of captured positive responses as a function of selected percentage of a sample. It is easy to obtain it using ROCR package plott...
[Read more...]
1 2 3 4

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)