2738 search results for "GIS"

Safely Loading Packages in R

January 18, 2013
By

Using R snippets written by other developers can be unendingly maddening.  There are a variety of reasons for this, most of which boil down to a simple issue: most code is written such that a system must be configured in … Continue reading →

Read more »

Dynamically annotate graphs with Shiny

January 18, 2013
By
Dynamically annotate graphs with Shiny

Below I present a simple way to automatically annotate plots through Shiny It occurred to me that labeling plots should be really easy to do with R-studio's swanky 'Shiny' add on. To test this I gathered some time series data from Wikipedia, added opt...

Read more »

Power Calculations – relationship between test power, effect size and sample size

January 17, 2013
By
Power Calculations – relationship between test power, effect size and sample size

I was interested in modeling the relationship between the power and sample size, while holding the significance level constant (p = 0.05) , for the common two-sample t-Test. Luckily R has great support for power analysis and I found the function I was looking for in the package pwr. To calculate the power for the two-sample T-test

Read more »

Calculating a Gini Coefficients for a Number of Locales at Once in R

January 17, 2013
By
Calculating a Gini Coefficients for a Number of Locales at Once in R

The Gini coefficient is a measure of the inequality of a distribution, most commonly used to compare inequality in income or wealth among countries.Let's first generate some random data to analyze. You can download my random data or use the code below ...

Read more »

Maize trade Part I: Generate the network diagram

January 17, 2013
By
Maize trade Part I: Generate the network diagram

It has been several month since my last post, partially due to the fact that my laptop was lost and several deadlines was approaching. Fortunately I will be returning to Taiwan and get a new laptop within a week, and will be updating regularly...

Read more »

Steve Culman on the `plyr` Package

January 17, 2013
By

At Davis R Users’ Group yesteray, Steve Culman gave us an introduction to the plyr package and how to use it to manipulate data. Here’s his presentation, and the accompanying demonstration script: Steve’s talk is based on this paper by Hadley Wickham in the Journal of Statistical Software. A lot of useful related...

Read more »

Plotting Odds Ratios (aka a forrestplot) with ggplot2 –

January 17, 2013
By
Plotting Odds Ratios (aka a forrestplot) with ggplot2 –

Hi, if you like me work in medical research, you have to plot the results of multiple logistic regressions every once in a while. As I have not yet found a great solution to make these plots I have put together the following short skript. Do not expect too much, it’s more of a reminder

Read more »

Two free online courses starting soon: Data Analysis (with R) and Social Network Analysis

January 17, 2013
By
Two free online courses starting soon: Data Analysis (with R) and Social Network Analysis

There are two online courses starting soon on Coursera, which are free to register. 1. Data Analysis (with R) It is a 8-week online course starting on Jan 22nd 2013 <https://www.coursera.org/course/dataanalysis>. This course is an applied statistics course focusing on … Continue reading →

Read more »

Slightly Different Measure of Valuation

January 16, 2013
By
Slightly Different Measure of Valuation

I grow tired of the tried and true standard measures of valuation, and from time to time I try to think of alternate methods.  One thought was to analyze Ken French’s Market(ME) to Book(BE) Breakpoints by percentile.  We can see by year at ...

Read more »

Wikipedia page views

January 16, 2013
By
Wikipedia page views

Here I present an application that quantifies Wikipedia page views. It can visualise any topic in any language. It is (shamelessly) based on an application by the blogger Andrew Clark (pssguy), whose code is available here.I have added:multi ...

Read more »