Articles by Bogumił Kamiński

Simulation metamodeling with GNU R

September 7, 2012 | Bogumił Kamiński

I am one of the organizers of ESSA2013 conference that will take place in September 2013 in Warsaw, Poland. The conference scope is social simulation and in particular methods of statistical analysis of simulation output (metamodeling). As we have just issued Call for Papers for the conference so I decided to ... [Read more...]

Animation basics for a vacation

August 5, 2012 | Bogumił Kamiński

Since I have a vacation this time I decided to implement some entertaining graphics. I have chosen to animate a Cassini oval.The task is can be accomplished using polar equation:The implementation of the animation is given by the following code:library... [Read more...]

Solving mastermind with R

June 29, 2012 | Bogumił Kamiński

In my last post I have shown a solution to classical sorting problem in R. So I thought that this time it would be nice to generate a strategy for playing Mastermind using R.It was shown by D.E. Knuth that Mastermind code can be bro... [Read more...]

Optimal sorting using rpart

June 24, 2012 | Bogumił Kamiński

Some time ago I read a nice post Solving easy problems the hard way where linear regression is used to solve an interesting puzzle. Following the idea I used rpart to find optimal decision tree sorting five elements.It is well known that... [Read more...]

Porting cdplot to ggplot2

May 11, 2012 | Bogumił Kamiński

Last week I published a post on plotting tables in ggplot2. So the next natural step is to port cdplot to allow simple visualization of categorical variables against a numerical predictor.First part of the story covers binary variables. In th...
[Read more...]

Visualizing tables in ggplot2

May 5, 2012 | Bogumił Kamiński

Recently I wanted to recreate  assocplot  using  ggplot2. In the end I propose a simple way to visualize data arranged two-way tables using geom_tile.I used Titanic data set as an example combining age and sex dimensi...
[Read more...]

Generating all subsets of a set

April 20, 2012 | Bogumił Kamiński

Recently I have calculated Banzhaf power index. I required generation of all subsets of a given set. The code given there was a bit complex and I have decided to write a simple function calculating it. As an example of its application I reproduce Figur...
[Read more...]

Plotting conditional densities

April 14, 2012 | Bogumił Kamiński

Recently I have read a post on Comparing all quantiles of two distributions simultaneously on R-bloggers. In the post author plots two conditional density plots on one graph. I often use such a plot to visualize conditional densities of score...
[Read more...]

Shapley-Shubik Power Index in R

March 13, 2012 | Bogumił Kamiński

This spring we have Rector Elections at Warsaw School of Economics. One of my collegues Tomasz Szapiro agreed to start in the elections. This induced me to write Shapley-Shubik Power Index calculation snippet in R.Rector elections in Warsaw School...
[Read more...]

Parallelizing Voting simulation

March 1, 2012 | Bogumił Kamiński

Last week I have compared synchronous and asynchronous implementation of NetLogo Voting model. An interesting afterthought is that synchronous model implementation can be easily made much faster using vectorization.The two versions of the Voting synchr...
[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)