Monthly Archives: April 2013

Slides from my R intro seminar

April 23, 2013
By
Slides from my R intro seminar

Here are my slides from a short introductory seminar on R (essentially going through part I of the R tutorial) last week. As magic lantern pictures go, they’re hideously ugly, but they were mostly there for future reference. Most of the seminar was spent showing RStudio. This Friday, we’ll practice some uses of qplot and make

Read more »

The Foundation for Open Access Statistics

April 23, 2013
By

Earlier this month we blogged about Harvard Professors Gary King and Stuart Shieber providing advice to graduate students about open access, dissertations, and journal publishing. We also mentioned some of the great initiatives that facilitate open access publishing in the statistics community, like the Journal of Statistical Software (JSS), The R Journal and arxiv.org. The ...

Read more »

wapply: A faster (but less functional) ‘rollapply’ for vector setups

April 23, 2013
By
wapply: A faster (but less functional) ‘rollapply’ for vector setups

For some cryptic reason I needed a function that calculates function values on sliding windows of a vector. Googling around soon brought me to ‘rollapply’, which when I tested it seems to be a very versatile function. However, I wanted to code my own version just for vector purposes in the hope that it may

Read more »

Review: Kölner R Meeting 12 April 2013

April 23, 2013
By
Review: Kölner R Meeting 12 April 2013

Our 5th Cologne R user group meeting was the best attended meeting so far, with 20 members finding their way to the Institute of Sociology for two talks by Diego de Castillo on shiny and Stephan Holtmeier on cluster analysis, followed by beer and schnitzel at the Lux, a gastropub nearby.ShinyDiego gave an overview of...

Read more »

Installation of WRS package (Wilcox’ Robust Statistics)

April 22, 2013
By

Some users had trouble installing the WRS package from R-Forge. Here’s a method that should work automatically and fail-safe: ?View Code RSPLUS# first: install dependent packages install.packages(c("MASS", "akima", "robustbase"))   # second: install suggested packages install.packages(c("cobs", "robust", "mgcv", "scatterplot3d", "quantreg", "rrcov", "lars", "pwr", "trimcluster", "parallel", "mc2d", "psych", "Rfit"))   # third: install WRS install.packages("WRS", repos="http://R-Forge.R-project.org",

Read more »

Scripts and Functions: Using R to Implement the Golden Section Search Method for Numerical Optimization

Scripts and Functions: Using R to Implement the Golden Section Search Method for Numerical Optimization

In an earlier post, I introduced the golden section search method – a modification of the bisection method for numerical optimization that saves computation time by using the golden ratio to set its test points.  This post contains the R function that implements this method, the R functions that contain the 3 functions that were

Read more »

The Golden Section Search Method: Modifying the Bisection Method with the Golden Ratio for Numerical Optimization

The Golden Section Search Method: Modifying the Bisection Method with the Golden Ratio for Numerical Optimization

Introduction The first algorithm that I learned for root-finding in my undergraduate numerical analysis class (MACM 316 at Simon Fraser University) was the bisection method.  It’s very intuitive and easy to implement in any programming language (I was using MATLAB at the time).  The bisection method can be easily adapted for optimizing 1-dimensional functions with

Read more »

Adding Percentiles to PDQ

April 22, 2013
By
Adding Percentiles to PDQ

Pretty Damn Quick (PDQ) performs a mean value analysis of queueing network models: mean values in; mean values out. By mean, I mean statistical mean or average. Mean input values include such queueing metrics as service times and arrival rates. These could be sample means. Mean output values include such queueing metrics as waiting time and queue...

Read more »

Upcoming GDAT Class May 6-10, 2013

April 22, 2013
By
Upcoming GDAT Class May 6-10, 2013

Enrollments are still open for the Level III Guerrilla Data Analysis Techniques class to be held during the week May 6—10. Early-bird discounts are still available. Enquire when you register. As usual, all classes are held at our lovely Larkspur...

Read more »

Gridding data for multi-scale macroecological analyses

April 22, 2013
By
Gridding data for multi-scale macroecological analyses

These are materials for the first practical lesson of the Spatial Scale in Ecology course. All of the data and codes are available here. The class covered a 1.5h session. R code for the session is also at the end…Read more →

Read more »