Split-Plot Design in JAGS: Revised version

May 19, 2012
By
Split-Plot Design in JAGS: Revised version

A previous post reported an analysis of a "split plot" design, in which one factor is between subjects and a second factor is within subjects. That program has now been revised, and the advantage of Bayesian analysis over NHST has been confirmed.My hea...

Read more »

Average Annual Population Growth Rate of Tawi-Tawi

May 19, 2012
By
Average Annual Population Growth Rate of Tawi-Tawi

R Codeslibrary(ggplot2) TawiTawiGrowthRate <- as.numeric(c(2.6, 3.3, 5.9, 1.6, 1.8, 5.5, 5))CensalYear <- c("1948-1960","1960-1970","1970-1980","1980-1990","1990-1995","1995-2000","2000-2007") qplot(CensalYear, TawiTawiGrowthRate, xlab ...

Read more »

Cross-validation to check missing-data imputation

May 19, 2012
By

Aureliano Crameri writes: I have questions regarding one technique you and your colleagues described in your papers: the cross validation (Multiple Imputation with Diagnostics (mi) in R: Opening Windows into the Black Box, with reference to Gelman, King, and Liu, 1998). I think this is the technique I need for my purpose, but I am [...]

Read more »

Question 8 of my final exam for Design and Analysis of Sample Surveys

May 18, 2012
By

8. Which of the following statements accurately characterize the National Election Studies? (Indicate all that apply.) (a) The NES began in 1960. (b) Since 1980, the NES has mostly relied on telephone interviews. (c) The NES typically has a sample size of about 1000–2000 people. (d) The NES uses a sampling design that ensures they [...]

Read more »

Official Statistic’s SWOT

May 18, 2012
By
Official Statistic’s SWOT

In the official statistics industry (an industry!) reflection and  collaboration are highly prioritized. As an example: HLG-BAS. What’s this? ’The High-Level Group for Strategic Developments in Business Architecture in Statistics (HLG-BAS) was set up by the Bureau of the Conference of European Statisticians in 2010 to oversee and coordinate international work relating to the development of …Read More

Read more »

Those mean psychologists, making fun of dodgy research!

May 18, 2012
By
Those mean psychologists, making fun of dodgy research!

Two people separately sent me this amusing mock-research paper by Brian A. Nosek (I assume that’s what’s meant by “Arina K. Bones”). The article is pretty funny, but this poster (by Nosek and Samuel Gosling) is even better! Check it out: I remarked that this was almost as good as my zombies paper, and my [...]

Read more »

Comments on “A Bayesian approach to complex clinical diagnoses: a case-study in child abuse”

May 18, 2012
By

I was given the opportunity to briefly comment on the paper, A Bayesian approach to complex clinical diagnoses: a case-study in child abuse, by Nicky Best, Deborah Ashby, Frank Dunstan, David Foreman, and Neil McIntosh, for the Journal of the Royal Statistical Society. Here is what I wrote: Best et al. are working on an [...]

Read more »

Should I be nice?

May 18, 2012
By
Should I be nice?

I got the following email. Subject: i have a question? Date: May 18, 2012 7:57:56 AM CDT how can i enter the data of QTL analysis. That was the whole thing. I presume that the writer wishes to use my R/qtl software. I could probably respond helpfully (for example, “See the sample data files and […]

Read more »

Installing EUtils perl module

May 17, 2012
By

In my recent post on Using R to graph a subject trend in PubMed I used the EUtils Perl module. There are detailed general instructions on how to install Perl module here for all major OS. What I did on my Mac is that.I downloaded the archive from http:...

Read more »

Emulating local static variables in R

May 17, 2012
By
Emulating local static variables in R

Recently I was writing a code allowing to plot multiple ggplot2 plots on one page. I wanted to replicate standard behavior of  plot  function that plots graphs in sequence according to  mfrow/ mfcol option in par...

Read more »

Question 7 of my final exam for Design and Analysis of Sample Surveys

May 17, 2012
By

7. Which of the following statements accurately summarize claims made by Page and Shapiro in The Rational Public and their associated research articles? (Indicate all that apply.) (a) Americans’ attitudes on policy alternatives are highly unstable over time, reflecting a rational response to unstable political conditions. (b) When studying public opinion, question-wording is less important [...]

Read more »

More Bixi Data Visualization

May 17, 2012
By
More Bixi Data Visualization

I mentioned in a previous post that our team at the recent Hack/Reduce hackathon had some fun with a data set which consisted of Bixi station states at minute level temporal resolution. In addition to pulling out and plotting the flux at each station on an hourly basis, we also plotted the system state (number

Read more »

More minorities babies than majority ones, Census Bureau Reports

May 17, 2012
By
More minorities babies than majority ones, Census Bureau Reports

It is official as today: Most Children Younger Than Age 1 are Minorities, Census Bureau Reports. The U.S. Census Bureau today released a set of estimates showing that 50.4 percent of our nation’s population younger than age 1 were minorities as of July 1, 2011. This is up from 49.5 percent from the 2010 Census [...]

Read more »

More on the difficulty of “preaching what you practice”

May 17, 2012
By

A couple months ago, in discussing Charles Murray’s argument that America’s social leaders should “preach what they practice” (Murray argues that they—we!—tend to lead good lives of hard work and moderation but are all too tolerant of antisocial and unproductive behavior among the lower classes), I wrote: Murray does not consider the case of Joe [...]

Read more »

Week-long Workshop, June 11-15

May 17, 2012
By
Week-long Workshop, June 11-15

I'll be doing a week-long workshop at the Inter-university Consortium for Political and Social Research (ICPSR), at the University of Michigan, Ann Arbor, June 11-15. Details are here.A list of future and past workshops can be found here.

Read more »

R’s increasing popularity. Should we care?

May 17, 2012
By
R’s increasing popularity. Should we care?

Some people will say ‘you have to learn R if you want to get a job doing statistics/data science’. I say bullshit, you have to learn statistics and learn to work in a variety of languages if you want to … Continue reading →

Read more »

Exponential decay models

May 17, 2012
By
Exponential decay models

All models are wrong, some models are more wrong than others. The streetlight model Exponential decay models are quite common.  But why? One reason a model might be popular is that it contains a reasonable approximation to the mechanism that generates the data.  That is seriously unlikely in this case. When it is dark and … Continue reading →

Read more »

Generating reports for different data sets using brew and knitr

May 17, 2012
By
Generating reports for different data sets using brew and knitr

I figured out a decent way to run knitr reports on different data sets easily. For my example instead of loading a new data set in each report I just use a different random number seed and print out some data. You’ll need the brew and knitr packages installed. First you’ll need to generate your [...]

Read more »

Population of Iligan City from 1970 to 2010

May 17, 2012
By
Population of Iligan City from 1970 to 2010

R Codeslibrary(ggplot2)library(grDevices)IliganCity <- c(104493, 118778, 167358, 226568, 273004, 285061, 308046, 322821)CensalYear <- c("1970", "1975", "1980", "1990", "1995", "2000", "2007", "2010")qplot(CensalYear, IliganCity, xlab = expression...

Read more »

An Example of Social Network Analysis with R using Package igraph

May 17, 2012
By
An Example of Social Network Analysis with R using Package igraph

by Yanchang Zhao, RDataMining.com This post presents an example of social network analysis with R using package igraph. The data to analyze is Twitter text data of @RDataMining used in the example of Text Mining, and it can be downloaded … Continue reading →

Read more »

garch() uncertainty

May 16, 2012
By
garch() uncertainty

As part of an on-going paper with Kerrie Mengersen and Pierre Pudlo, we are using a GARCH(1,1) model as a target. Thus, the model is of the form which is a somehow puzzling object: the latent (variance) part is deterministic and can be reconstructed exactly given the series and the parameters. However, estimation is not [...]

Read more »

Question 6 of my final exam for Design and Analysis of Sample Surveys

May 16, 2012
By

6. A survey of New York City residents is performed using cluster sampling. The design effect is 3.0. From the survey, the estimated proportion who prefer the Mets to the Yankees is 0.42 with a standard error of 0.05. How many people were in the sample? Solution to question 5 From yesterday: 5. Which of [...]

Read more »

Update: Parameters as Population Quantities

May 16, 2012
By

Some time ago, I had an ineloquent and less-than-cordial online discussion with a commenter on this site, partially about how statisticians define the term "parameter". This post is just to quote a relevant passage from "Bootstrap Methods and Their Application", by Davison and Hinkley (1997), that better articulates a point I had made earlier. 2.1.1 [...]

Read more »

Subscribe

Email:

  Subscribe