Posts Tagged ‘ tables ’

Printing nested tables in R – bridging between the {reshape} and {tables} packages

January 29, 2012
By
Printing nested tables in R – bridging between the {reshape} and {tables} packages

This post shows how to print a prettier nested pivot table, created using the {reshape} package (similar to what you would get with Microsoft Excel), so you could print it either in the R terminal or as a LaTeX table. This task is done by bridging between the cast_df object produced by the {reshape}...

Read more »

Example 8.39: calculating Cramer’s V

June 3, 2011
By
Example 8.39: calculating Cramer’s V

Cramer's V is a measure of association for nominal variables. Effectively it is the Pearson chi-square statistic rescaled to have values between 0 and 1, as follows:V = sqrt(X^2 / )where X^2 is the Pearson chi-square, n...

Read more »

Barnard’s exact test – a powerful alternative for Fisher’s exact test (implemented in R)

February 7, 2010
By
Barnard’s exact test – a powerful alternative for Fisher’s exact test (implemented in R)

(The R code for Barnard’s exact test is at the end of the article, and you could also just download it from here) About Barnard’s exact test About half a year ago, I was studying various statistical methods to employ on contingency tables. I came across a promising method for 2×2 contingency tables called “Barnard’s exact test“. Barnard’s...

Read more »

Formatting a Table in Word | R to Tab-Delimited to APA Style

September 25, 2009
By
Formatting a Table in Word | R to Tab-Delimited to APA Style

The following post sets out my procedure for importing a tab-delimited table of data produced in R  into Microsoft Word and formatting it.Prior to importing table:Run macro which does the followingInsert Caption: References - Insert Capt...

Read more »

Simple visualization of a 11X5 table (for WordPress 2.9 Features Vote Results)

July 31, 2009
By
Simple visualization of a 11X5 table (for WordPress 2.9 Features Vote Results)

I guess this is not the number one post I would like to start with on this blog, but I feel the time is right for it (community-wise). I’ll move on to the subject matter in a moment, but first a short intro: This blog is written by Tal Galili. I am ...

Read more »

Simple visualization of a 11X5 table (for WordPress 2.9 Features Vote Results)

July 31, 2009
By
Simple visualization of a 11X5 table (for WordPress 2.9 Features Vote Results)

I guess this is not the number one post I would like to start with on this blog, but I feel the time is right for it (community-wise). I’ll move on to the subject matter in a moment, but first a short intro: This blog is written by Tal Galili. I am an aspiring statistician...

Read more »

R: Function to create tables in LaTex or Lyx to display regression model results

June 19, 2009
By
R: Function to create tables in LaTex or Lyx to display regression model results

Most people using LaTex feel that creating tables is no fun. Some days ago I stumbled across a neat function written by Paul Johnson that produces LaTex code as well as LaTex code that can be used within Lyx. The output can be used for regression models and looks like output from the Stata...

Read more »

Using R in consulting: playing nice with Microsoft Word

October 17, 2008
By
Using R in consulting: playing nice with Microsoft Word

As I use R more in consulting, I'm finding the need to make the quick transition from R to Microsoft products (usually Word) more serious. (I'm using a Windows platform, but I'm sure the challenges on the Mac would be similar.) I simply don't have time...

Read more »

Sponsors