Quantcast
Channel: code – R-statistics blog
Browsing all 16 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Barnard’s exact test – a powerful alternative for Fisher’s exact test...

(The R code for Barnard’s exact test is at the end of the article, and you could also just download it from here, or from github) Barnards exact test - p-value based on the nuisance parameter About...

View Article



Image may be NSFW.
Clik here to view.

Post hoc analysis for Friedman’s Test (R code)

My goal in this post is to give an overview of Friedman’s Test and then offer R code to perform post hoc analysis on Friedman’s Test results. (The R function can be downloaded from here) Preface: What...

View Article

Siegel-Tukey: a Non-parametric test for equality in variability (R code)

Daniel Malter just shared on the R mailing list (link to the thread) his code for performing the Siegel-Tukey (Nonparametric) test for equality in variability. Excited about the find, I contacted...

View Article

Image may be NSFW.
Clik here to view.

Correlation scatter-plot matrix for ordered-categorical data

When analyzing a questionnaire, one often wants to view the correlation between two or more Likert questionnaire item’s (for example: two ordered categorical vectors ranging from 1 to 5). When dealing...

View Article

The difference between “letters[c(1,NA)]” and “letters[c(NA,NA)]“

In David Smith’s latest blog post (which, in a sense, is a continued response to the latest public attack on R), there was a comment by Barry that caught my eye. Barry wrote: Even I get caught out on R...

View Article


Image may be NSFW.
Clik here to view.

How to upgrade R on windows XP – another strategy (and the R code to do it)

Background – how I heard that there is more then one way to upgrade R If you didn’t hear it by now – R 2.11.0 is out with a bunch of new features. After Andrew Gelman recently lamented the lack of an...

View Article

Dumping functions from the global environment into an R script file

Looking at a project you didn’t touch for years poses many challenges. The less documentation and organization you had in your files, the more time you’ll have to spend tracing back what you did back...

View Article

How to upgrade R on windows 7

Background – time to upgrade to R 2.13.0 The news of the new release of R 2.13.0 is out, and the R blogosphere is buzzing. Bloggers posting excitedly about the new R compiler package that brings with...

View Article


Image may be NSFW.
Clik here to view.

Barnard's exact test – a powerful alternative for Fisher's exact test...

(The R code for Barnard’s exact test is at the end of the article, and you could also just download it from here, or from github) Barnards exact test - p-value based on the nuisance parameter About...

View Article


Image may be NSFW.
Clik here to view.

Post hoc analysis for Friedman's Test (R code)

My goal in this post is to give an overview of Friedman’s Test and then offer R code to perform post hoc analysis on Friedman’s Test results. (The R function can be downloaded from here) Preface: What...

View Article

Siegel-Tukey: a Non-parametric test for equality in variability (R code)

Daniel Malter just shared on the R mailing list (link to the thread) his code for performing the Siegel-Tukey (Nonparametric) test for equality in variability. Excited about the find, I contacted...

View Article

Image may be NSFW.
Clik here to view.

Correlation scatter-plot matrix for ordered-categorical data

When analyzing a questionnaire, one often wants to view the correlation between two or more Likert questionnaire item’s (for example: two ordered categorical vectors ranging from 1 to 5). When dealing...

View Article

The difference between "letters[c(1,NA)]" and "letters[c(NA,NA)]"

In David Smith’s latest blog post (which, in a sense, is a continued response to the latest public attack on R), there was a comment by Barry that caught my eye. Barry wrote: Even I get caught out on R...

View Article


Image may be NSFW.
Clik here to view.

How to upgrade R on windows XP – another strategy (and the R code to do it)

Update: This post has a follow-up for how to upgrade R on windows 7 explaining how to deal with permission issues. Background – how I heard that there is more then one way to upgrade R If you didn’t...

View Article

Dumping functions from the global environment into an R script file

Looking at a project you didn’t touch for years poses many challenges. The less documentation and organization you had in your files, the more time you’ll have to spend tracing back what you did back...

View Article


How to upgrade R on windows 7

Background – time to upgrade to R 2.13.0 The news of the new release of R 2.13.0 is out, and the R blogosphere is buzzing. Bloggers posting excitedly about the new R compiler package that brings with...

View Article
Browsing all 16 articles
Browse latest View live




Latest Images