Monthly Archives: May 2010

Simulating a Queue in R

May 30, 2010
By

In the GCaP class earlier this month, we talked about the meaning of the load average (in Unix and Linux) and simulating a grocery store checkout lane, but I didn't actually do it. So, I decided to take a shot at constructing a discrete-event simulatio...

Read more »

Talk at CRiSM

May 30, 2010
By

This is the talk I am giving at the workshop on model uncertainty organised by the Centre for Research in Statistical Methodology (CRiSM) at the University of Warwick, on May 30-June 1. Careful readers will notice there is not much difference with my previous talk on the topic, as I only included the Savage-Dickey slides

Read more »

Dynamic Modeling 2: Our First Substantive Model

May 30, 2010
By

(This is the second of a series of ongoing posts on using Graph Algebra in the Social Sciences.) First-order linear difference equations are powerful, yet simple modeling tools.  They can provide access to useful substantive insights to real-world phenomena.  They can have powerful predictive ability when used appropriately.  Additionally, they may be classified in any number

Read more »

Notice that even though output is in a log scale, output is…

May 29, 2010
By

Notice that even though output is in a log scale, output is shooting up in an exponential way. DATA from Brad DeLong

Read more »

Source Code Files in R

May 29, 2010
By

R's interactive programming style is similar to what I have seen in other environments (e.g. ruby's irb and Oracle's SQL*Plus, etc). There are a few commands that you need to be aware of to get up and running with developing R programs.To identify yo...

Read more »

Weekend art in R (part 1?)

May 29, 2010
By

As usual click on the image for a full-size version. Code: par(bg="black") par(mar=c(0,0,0,0)) plot(c(0,1),c(0,1),col="white",pch=".",xlim=c(0,1),ylim=c(0,1)) iters = 500 for(i in 1:iters) { center = runif(2) size = rbeta(2,1,50)   # Let's create random HTML-style colors color = sample(c(0:9,"A","B","C","D","E","F"),12,replace=T) fill = paste("#", paste(color[1:6],collapse=""),sep="") brdr = paste("#", paste(color[7:12],collapse=""),sep="")   rect(center[1]-size[1], center[2]-size[2], center[1]+size[1], center[2]+size[2], col=fill, border=brdr, density=NA, lwd=1.5) }

Read more »

highlight 0.1-9

May 29, 2010
By

The version 0.1-8 of highlight introduced a small bug in the latex renderer. This is now fixed in version 0.1-9 and the latex renderer also gains an argument "minipage" which wraps the latex code in a minipage environment. I've used this to make...

Read more »

Syncing files across computers using DropBox

May 29, 2010
By

Motivation In the past few months I have been using DropBox for syncing my work files between my home and work computer. It has saved me from numerous mistakes and from sending the files to myself via e-mail. Recently I found this service highly useful for sharing files with 4 other people with whom I am working on a...

Read more »

An XML Representation of the Keys to Soil Taxonomy?

May 28, 2010
By

Western Fresno Soil Hierarchy: partial view of the hierarchy within the US Soil Taxonomic system Maybe this is just craziness, but wouldn't be neat to have an XML formatted version of the Keys to Soil Taxonomy? The format might look something like the ...

Read more »

R: More plotting fun with Poission

May 28, 2010
By

Coded as follows: x = seq(.001,50,.001) par(bg="black") par(mar=c(0,0,0,0)) plot(x,sin(1/x)*rpois(length(x),x),pch=20,col="blue")

Read more »

Sponsors

Contact us if you wish to help support R-bloggers, and place your banner here.

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)