Example 2014.8: Estimate power for an interaction, by simulation

June 30, 2014
By
Example 2014.8: Estimate power for an interaction, by simulation

In our last entry, we demonstrated how to simulate data from a logistic regression with an interaction between a dichotomous and a continuous covariate. In this entry we show how to use the simulation to estimate the power to detect that interaction. ...

Read more »

Who invented the Metropolis algorithm?

June 30, 2014
By

Paul Alper writes: I found this at the 15:57 mark of one of Bill Press’s videos but do not know if this bit of history is well known in the MCMC universe. This is Marshall Rosenbluth criticizing Metropolis (and others). The text is taken from an interview of Rosenbluth in 2003 by Kai-Henrik Barth: Barth: […] The post Who invented the Metropolis algorithm? appeared first on Statistical Modeling, Causal Inference,…

Read more »

Piketty in R markdown – we need some help from the crowd

June 30, 2014
By
Piketty in R markdown – we need some help from the crowd

Thomas Piketty's book Capital in the 21st Century was a surprise best seller and the subject of intense scrutiny. A few weeks ago the Financial Times claimed that the analysis was riddled with errors, leading to a firestorm of discussion. A … Continue reading →

Read more »

On deck this week

June 30, 2014
By

Mon: Who invented the Metropolis algorithm? Tues: “Who’s bigger”—the new book that ranks every human on Wikipedia—is more like Bill Simmons than Bill James Wed: “Being an informed Bayesian: Assessing prior informativeness and prior–likelihood conflict” Thurs: “The great advantage of the model-based over the ad hoc approach, it seems to me, is that at any […] The post On deck this week appeared first on Statistical Modeling, Causal Inference, and…

Read more »

Create standard statistical graphs from SAS/IML

June 30, 2014
By
Create standard statistical graphs from SAS/IML

Last week I showed how to use the SUBMIT and ENDSUBMIT statements in the SAS/IML language to call the SGPLOT procedure to create ODS graphs of data that are in SAS/IML vectors and matrices. I also showed how to create a SAS/IML module that hides the details and enables you […]

Read more »

R/Rmetrics in Paris [alas!]

June 29, 2014
By
R/Rmetrics in Paris [alas!]

Today I gave a talk on Bayesian model choice in a fabulous 13th Century former monastery in the Latin Quarter of Paris… It is the Collège des Bernardins, close to Jussieu and Collège de France, unbelievably hidden to the point I was not aware of its existence despite having studied and worked in Jussieu since […]

Read more »

ADS Perspective on the First-Quarter Contraction

June 29, 2014
By
ADS Perspective on the First-Quarter Contraction

Following on my last post about the first-quarter GDP contraction, now look at the FRB Philadelphia's Aruoba-Diebold-Scotti (ADS) Index. 2014Q1 is the rightmost downward blip. It's due mostly to the huge drop in expenditure-side GDP (GDP_E), which...

Read more »

Scott Adams blogging

June 29, 2014
By

Some of my commenters (you know who you are) demand more Scott-Adams-related content. So I went over to the Dilbert blog and found two interesting recent items: The Pivot: I’m not particularly interested in the topic (rich guys getting richer) but Adams usefully deploys statistical thinking in this one (“Success simply can’t be predicted to […] The post Scott Adams blogging appeared first on Statistical Modeling, Causal Inference, and Social…

Read more »

Football! Soccer! Statistics!

June 29, 2014
By
Football! Soccer! Statistics!

Emil Johansson, a Chemical Engineering student currently living in Gothenburg, Sweden made a beautiful visualisation of a well known event …Continue reading →

Read more »

The TaoTeProgramming R package

June 29, 2014
By
The TaoTeProgramming R package

I’d like to do a song of great social and political import. The code that created the illustrations in Tao Te Programming is now available as the TaoTeProgramming package on CRAN. The sea is just flat hills And they are both just smooth mountains. The package contains just over 1000 lines of code.  More than […]

Read more »

stone flakes IV

June 29, 2014
By
stone flakes IV

In this post I want to try something new, a causal graphical model. The aim here is just as much to get myself a feel what these things do as to understand how the stone flakes data fit together. DataData are stone flakes data which I analyzed previous...

Read more »

Break!

June 28, 2014
By
Break!

Just to break the mono-thematic nature of the recent posts, I thought I'd just linked to this article which has appeared in the Significance website.That's an interesting analysis conducted by researchers at the LSE, demystifying the myth that migrants...

Read more »

Useless Algebra, Inefficient Computation, and Opaque Model Specifications

June 28, 2014
By

I (Bob, not Andrew) doubt anyone sets out to do algebra for the fun of it, implement an inefficient algorithm, or write a paper where it’s not clear what the model is. But… Why not write it in BUGS or Stan? Over on the Stan users group, Robert Grant wrote Hello everybody, I’ve just been […] The post Useless Algebra, Inefficient Computation, and Opaque Model Specifications appeared first on Statistical…

Read more »

The Oracle (6)

June 27, 2014
By
The Oracle (6)

Quick update, now that the group stage is finished. We needed a few tweaks to the simulation process (described in some more details here), which we spent some time debating and implementing.First off, the data on the last World Cups show that during t...

Read more »

Squeezing more speed from R for nothing, Rcpp style

June 27, 2014
By
Squeezing more speed from R for nothing, Rcpp style

In a previous post we explored how you can greatly speed up certain types of long-running computations in R by parallelizing your code using multicore package*. I also mentioned that there were a few other ways to speed up R… Continue reading →

Read more »

Comment of the week

June 27, 2014
By

This one, from DominikM: Really great, the simple random intercept – random slope mixed model I did yesterday now runs at least an order of magnitude faster after installing RStan 2.3 this morning. You are doing an awesome job, thanks a lot! The ...

Read more »

Quantifying luck vs. skill in sports

June 27, 2014
By

Trey Causey writes: If you’ll permit a bit of a diversion, I was wondering if you’d mind sharing your thoughts on how sabermetrics approaches the measurement of luck vs. skill. Phil Birnbaum and Tom Tango use the following method (which I’ve quoted below). It seems to embody the innovative but often non-intuitive way that sabermetrics […] The post Quantifying luck vs. skill in sports appeared first on Statistical Modeling, Causal…

Read more »

The First Quarter GDP Contraction was Less Severe than you Think

June 27, 2014
By
The First Quarter GDP Contraction was Less Severe than you Think

As discussed in an earlier post, my co-authors and I believe that our "GDPplus," obtained by optimally blending the noisy expenditure- and income-side GDP estimates, provides a superior U.S. GDP measure. (Check it out online; the Federal Reserve B...

Read more »

Simulate many samples from a logistic regression model

June 27, 2014
By
Simulate many samples from a logistic regression model

My last blog post showed how to simulate data for a logistic regression model with two continuous variables. To keep the discussion simple, I simulated a single sample with N observations. However, to obtain the sampling distribution of statistics, you need to generate many samples from the same logistic model. […]

Read more »

Bayesian First Aid: Test of Proportions

June 27, 2014
By
Bayesian First Aid: Test of Proportions

Does pill A or pill B save the most lives? Which web design results in the most clicks? Which in vitro fertilization technique results in the largest number of happy babies? A lot of questions out there involves estimating the proportion or relative ...

Read more »

(Py, R, Cmd) Stan 2.3 Released

June 26, 2014
By

We’re happy to announce RStan, PyStan and CmdStan 2.3. Instructions on how to install at: http://mc-stan.org/ As always, let us know if you’re having problems or have comments or suggestions. We’re hoping to roll out the next release a bit quicker this time, because we have lots of good new features that are almost ready […] The post (Py, R, Cmd) Stan 2.3 Released appeared first on Statistical Modeling, Causal…

Read more »

Estimating a customer satisfaction regression, asking only a subset of predictors for each person

June 26, 2014
By

Someone writes in with an interesting question: I’d like to speak with you briefly to get your thoughts on the imputation of missing data in a new online web-survey technique I’m developing. Our survey uses Split Questionnaire Design. The total number of surveys will vary in length with different customers, but will generally be between […] The post Estimating a customer satisfaction regression, asking only a subset of predictors for…

Read more »

Light entertainment: famous people, sleep, publication bias

June 26, 2014
By
Light entertainment: famous people, sleep, publication bias

Bernard L. tipped us about this "infographic": The chart is missing a title. The arcs present "sleep schedules" for the named people. The "data" comes from a book. I wonder about the accuracy of such data. Also note the inherent...

Read more »


Subscribe

Email:

  Subscribe