283 search results for "ANOVA"

Mixed models; Random Coefficients, part 2

September 14, 2013
By

Continuing from random coefficients part 1, it is time for the second part. To quote the SAS/STAT manual 'a random coefficients model with error terms that follow a nested structure'. The additional random variable is monthc, which is a factor con...

Read more »

Mixed models; Random Coefficients, part 1

September 8, 2013
By
Mixed models; Random Coefficients, part 1

Continuing with my exploration of mixed models I am now at the first part of random coefficients: example 59.5 for proc mixed (page 5034 of the SAS/STAT 12.3 Manual). This means I skipped examples 59.3 (plotting the likelihood) and 59.4 (known G and R)...

Read more »

Latent Variable Analysis with R: Getting Setup with lavaan

September 1, 2013
By
Latent Variable Analysis with R: Getting Setup with lavaan

Getting Started with Structural Equation Modeling Part 1Getting Started with Structural Equation Modeling: Part 1 Introduction For the analyst familiar with linear regression fitting structural equation models can at first feel strange. In the R environment, fitting structural equation models involves learning new modeling syntax, new plotting...

Read more »

The joy and martyrdom of trying to be a Bayesian

August 30, 2013
By

Some of my fellow scientists have it easy. They use predefined methods like linear regression and ANOVA to test simple hypotheses; they live in the innocent world of bivariate plots and lm(). Sometimes they notice that the data have odd histograms and they use glm(). The more educated ones use … Continue reading →

Read more »

More REML exercise

August 25, 2013
By

Last week I tried exercise 1 of the SAS(R) proc mixed with R libraries lme4 and MCMCglm. So this week I aimed for exercise 2 but ended up redoing exercise 1 with nlme.Exercise 2 results gave me problems with library lme4 and latter parts of the ex...

Read more »

The Bayesian Counterpart of Pearson’s Correlation Test

August 19, 2013
By
The Bayesian Counterpart of Pearson’s Correlation Test

Except for maybe the t test, a contender for the title “most used and abused statistical test” is Pearson’s correlation test. Whenever someone wants to check if two variables relate somehow it is a safe bet (at least in psychology) that the first thing to be tested is the strength of a Pearson’s correlation. Only if that doesn’t...

Read more »

Exercise in REML/Mixed model

August 18, 2013
By

I want to build a bit more experience in REML, so I decided to redo some of the SAS examples in R. This post describes the results of example 59.1 (page 5001, SAS(R)/STAT User guide 12.3 link). Following the list from freshbiostats I will analyze ...

Read more »

How do I re-arrange??: Ordering a plot revisited

August 14, 2013
By
How do I re-arrange??: Ordering a plot revisited

Back in October of last year I wrote a blog post about reordering/rearanging plots. This was, and continues to be, a frequent question on list serves and R help sites. In light of my recent studies/presenting on The Mechanics of … Continue reading →

Read more »

More rainfall calculations – REML

August 4, 2013
By
More rainfall calculations – REML

I wanted to have a look at various REML methods for a long time. The rainfall data seemed a nice example. On top of that, FreshBiostats had a blog post 'Mixed Models in R: lme4, nlme, or both?'. So lme4 it is.The data  As described before; th...

Read more »

Uncertainty in parameter estimates using multilevel models

August 3, 2013
By

David Hsu writes: I have a (perhaps) simple question about uncertainty in parameter estimates using multilevel models — what is an appropriate threshold for measure parameter uncertainty in a multilevel model? The reason why I ask is that I set out to do a crossed two-way model with two varying intercepts, similar to your flight The post Uncertainty...

Read more »