3960 search results for "git"

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...

Demonstrating Confidence Intervals with Shiny

January 6, 2013
By

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...

Demonstrating Confidence Intervals with Shiny

January 6, 2013
By

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...

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: ...

Demonstrate your R code with an interactive, embeddable Javascript widget

January 6, 2013
By

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.

More Principal Components Fun

January 6, 2013
By

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

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...

Find Out Available Usernames with R

January 5, 2013
By

Update on 2013/01/05: Xiao Nan in the comments pointed out that apply(combn(letters, 2), 2, paste0, collapse = '') was wrong for all two-letter usernames, and indeed it was. It is not a combination problem. Now I use his elegant outer() solution. One can also use expand.grid(letters, letters). Github decided to take off their downloads service, and I was very...

A new version of analogue for a new year

January 4, 2013
By

Yesterday I rolled up a new version (0.10-0) of analogue, my R package for analysing palaeoecological data. It is now available from CRAN. There were lots of incremental changes to Stratiplot() to improve the quality of the stratigraphic diagrams produced … Continue reading →