July 2012

A weighting function for ‘nls’ / ‘nlsLM’

July 19, 2012 | anspiess

Standard nonlinear regression assumes homoscedastic data, that is, all response values are distributed normally.  In case of heteroscedastic data (i.e. when the variance is dependent on the magnitude of the data), weighting the fit is essential. In nls (or nlsLM of the minpack.lm package), weighting can be conducted ... [Read more...]

Universal portfolio, part 8

July 18, 2012 | Orval

We extend the analysis of part 7 by calculating the final wealth for all tuples of 3 and 4 stocks, this is a simple extension but it also shows the most important problem of the Universal portfolio algorithm, its exponential complexity in the number of... [Read more...]

Mapping Public Opinion: A Tutorial

July 18, 2012 | d sparks

At the upcoming 2012 summer meeting of the Society of Political Methodology, I will be presenting a poster on Isarithmic Maps of Public Opinion. Since last posting on the topic, I have made major improvements to the code and robustness of the modeling approach, and written a tutorial that illustrates the ... [Read more...]

Time zones

July 18, 2012 | Frans Slothouber

Say we have some following raw data. It consists of a timestamp and a corresponding value. There is a peak at exactly midnight (00:00:00). Each timestamp is fully specified. It contains a date, a time of day, and a time zone offset indication. In this case +0000, meaning the data is 0 hours ... [Read more...]

Course at Monash (#1)

July 18, 2012 | xi'an

Here are the slides for the first day of my course at Monash University, Melbourne, in the Special Lectures in Econometrics, with a strong similarity with the slides of my course in Wharton, two years ago. (Be sure to check slide 67! If the update on slideshare works from my flat ... [Read more...]

Gamification Quantification

July 18, 2012 | Joel Cadwell

Surveys become engaging when they become games, or at least, take on some of the characteristics of games.  This is the argument made by those advocating the gamification of marketing research [http://researchaccess.com/2011/12/market-researc... [Read more...]

bubble plot in R

July 18, 2012 | Xianjun Dong

Motived by the post from FlowingData(http://flowingdata.com/2010/11/23/how-to-make-bubble-charts/), I made this plot with R code below:par(mfrow=c(3,1), mar=c(4,6,4,4))for(ty in c("protein_coding","lincRNA","piRNA")){          ... [Read more...]

Preparing public data for analysis with R

July 18, 2012 | David Smith

In most data science applications, preparing the data is at least half the job. Finding where the data lives, figuring out how to access it, finding the right records, filtering, cleaning and transforming the data ... all of this has to be done before the statistical analysis can even begin. Fortunately, ... [Read more...]

How to track Twitter unfollowers in R

July 18, 2012 | Dzidorius Martinaitis

I have Twitter account and it is relatively easy to see new followers or subscribers. However, I was looking for ways to know who are the unfollowers. I have noticed, that some (un)subscriptions happen in bulks, which made me thinking that either I tweeted some bullshit and upset bunch ...
[Read more...]

Project Euler — problem 15

July 18, 2012 | Tony

The 15th problem in Project Euler. Starting in the top left corner of a 22 grid, there are 6 routes (without backtracking) to the bottom right corner. How many routes are there through a 2020 grid? Mmm… walk in the … Continue reading → [Read more...]

50 Shades of Grey Wordcloud

July 17, 2012 | Myles

Sometimes you just want to see what all the fuss is about. File this under the 'because I can' category: I proudly (?) present - a wordcloud produced from the text of E. L. James' "50 Shades of Grey".For a book which is getting all this press about bei... [Read more...]

Trends in run scoring, NL edition (more R)

July 17, 2012 | Martin Monkman

Last time around I used R to plot the average runs per game for the American League, starting in 1901. Now I’ll do the same for the National League.  I'll save a comparison of the two leagues for my next post.A fundamental principal of programming is that code can ... [Read more...]

The R packages in a data scientist’s toolbox

July 17, 2012 | David Smith

John Myles White, self-described "statistics hacker" and co-author of "Machine Learning for Hackers" was interviewed recently by The Setup. In the interview, he describes his some of his go-to R packages for data science: Most of my work involves programming, so programming languages and their libraries are the bulk of ... [Read more...]
1 4 5 6 7 8 13

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)