862 search results for "how to import image file to R"

Data types part 2: Using classes to your advantage

November 8, 2012
By
Data types part 2: Using classes to your advantage

Last week I talked about objects including scalars, vectors, matrices, dataframes, and lists.  This post will show you how to use the objects (and their corresponding classes) you create in R to your advantage.First off, it's important to remember...

Read more »

The [95%] Confidence of Nate Silver

November 7, 2012
By
The [95%] Confidence of Nate Silver

The headlines have been buzzing with the “triumph” of statistics and math in this election.  But before I jump into how well statistics served us, let’s do a little primer on the margin of error. Whenever we measure less than the whole population we’ll have some variability in the sample.  Chances are good that the

Read more »

Can We Live Without Backslashes?

October 30, 2012
By
Can We Live Without Backslashes?

Two months ago there was a discussion in the ESS mailing list about Emacs/ESS started by Paul Johnson, who claimed "Emacs Has No Learning Curve". While this sounds impossible, he really has some good points, e.g. he encourages beginners to look at the ...

Read more »

Working with Shootout – 2012 in R (001)

October 29, 2012
By
Working with Shootout – 2012 in R (001)

I have downloaded (from the IDRC) the ASCI files of the Shootout 2012 (see: Shootout 2012 files), so I can work with the data  to develop a model and predict a Validation Set.For that task I have a "Calibration Set", and a  "Test Se...

Read more »

How Scenic is the HS2 Route?

October 29, 2012
By
How Scenic is the HS2 Route?

It is fairly clear from the duration between this and my last post that various other things have been getting in the way of updates. Anyway, I shall try and post a few updates on news and things I have been working on recently in the coming weeks before getting back to regular posting! Back

Read more »

Visiting FHCRC, JHSPH and Meeting Xi’an

October 29, 2012
By
Visiting FHCRC, JHSPH and Meeting Xi’an

I have been traveling during the last two weeks. I visited Fred Hutchinson Cancer Research Center on Oct 16 and the Department of Biostatistics at Johns Hopkins at the invitation of Simply Statistics on Oct 23. Today Christian Robert was visiting our department at Iowa State, and I also talked to him. It is really cool...

Read more »

Bayes for President!

October 23, 2012
By
Bayes for President!

I couldn't resist getting sucked into the hype associated with the US election and debates, and so I thought I had a little fun of my own and played around a bit with the numbers. [OK: you may disagree with the definition of "fun" $-$ but then again, i...

Read more »

Getting data in and out of R

October 22, 2012
By
Getting data in and out of R

One of the great advantages of R is that it recognizes almost any data format that you can throw at it. There are a myriad of different possible file formats but I'll concentrate on the four files that we see almost exclusively in public health: Excel ...

Read more »

Predict User’s Return Visit within a day part-3

October 22, 2012
By
Predict User’s Return Visit within a day part-3

Welcome to the last part of the series on predicting user’s revisit to the website. In the  first part of series, I generated the logistic regression model for prediction problem whether a user will come back on  website in next 24 hours. In the second part, I discussed about model improvement and seen the model accuracy.

Read more »

The consequence of merging insurance companies – Risk simulation and probability of ruin

October 17, 2012
By
The consequence of merging insurance companies – Risk simulation and probability of ruin

The merge of two insurance companies enables to curb the probability of ruin by sharing the risk and the capital of the two companies. For example, we can consider two insurance companies, A and B. A is a well known insurance company with a big capital and is dealing with a risk with a low variance. We will assume...

Read more »