4042 search results for "git"

Breaking the rules with spatial correlation

January 7, 2013
By
Breaking the rules with spatial correlation

Students in any basic statistics class are taught linear regression, which is one of the simplest forms of a statistical model. The basic idea is that a ‘response’ variable can be mathematically related to one or any number of ‘explanatory’ variables through a linear equation and a normally distributed error term. With any statistical tool,

Read more »

Don’t R alone! A guide to tools for collaboration with R

January 7, 2013
By
Don’t R alone! A guide to tools for collaboration with R

This a brief guide to using R in collaborative, social ways. R is a powerful open-source programming language for data analysis, statistics, and visualization, but much of its power derives from a large, engaged community of users. This is an introduction to tools for engaging the community to improve your R code and collaborate with others. (Am I...

Read more »

Symbolic Differentiation in Julia

January 7, 2013
By

A Brief Introduction to Metaprogramming in Julia In contrast to my previous post, which described one way in which Julia allows (and expects) the programmer to write code that directly employs the atomic operations offered by computers, this post is meant to introduce newcomers to some of Julia’s higher level functions for metaprogramming. To make

Read more »

analyze the medical expenditure panel survey (meps) with r

January 7, 2013
By

the meps household component leads the pack for examining individual-level medical expenditures by payor and type of service.  total expenditures captured by the survey tend to be low, but unbiased across the board and can be adjusted to match the...

Read more »

Demonstrating Confidence Intervals with Shiny

January 6, 2013
By
Demonstrating Confidence Intervals with Shiny

For the introductory statistic student confidence intervals can seem a daunting concept to grasp.  Quite simply put it is an interval that we have a certain measure of confidence that the population parameter falls into.  The 95% confidence is the most common value chosen in my academic circle.  Nevertheless, many others may be viable as well as long as...

Read more »

Demonstrating Confidence Intervals with Shiny

January 6, 2013
By
Demonstrating Confidence Intervals with Shiny

For the introductory statistic student confidence intervals can seem a daunting concept to grasp.  Quite simply put it is an interval that we have a certain measure of confidence that the population parameter falls into.  The 95% confidence is the most common value chosen in my academic circle.  Nevertheless, many others may be viable as well as long as...

Read more »

Search and replace: Are you tired of nested `ifelse`?

January 6, 2013
By

It happens all the time: you have a vector of fruits and you want to replace all bananas with apples, all oranges with pineapples, and leave all the other fruits as-is, or maybe change them all to figs. The usual solution? A big old nested `ifelse`: ...

Read more »

Demonstrate your R code with an interactive, embeddable Javascript widget

January 6, 2013
By
Demonstrate your R code with an interactive, embeddable Javascript widget

Let visitors execute and play with simple R examples right on your web page, thanks to a web service and an embeddable widget provided by the Sage project.

Read more »

More Principal Components Fun

January 6, 2013
By
More Principal Components Fun

Today, I want to continue with the Principal Components theme and show how the Principal Component Analysis can be used to build portfolios that are not correlated to the market. Most of the content for this post is based on the excellent article, “Using PCA for spread trading” by Jev Kuznetsov. Let’s start by loading

Read more »

National identification number: Finland part2

January 5, 2013
By

Continuing our theme from last time. The Finnish social security number (FSSn) has the form xxxxxxyzzzq, where the check digit is q. If you want to check if the FSSn is real the check digit is matched to the remainder of xxxxxxzzz / 31. The check di...

Read more »