mike-lawrence/ez — Issue #24: "3.884" is not a variable in the data frame provided
Author: aguscamacho
Created: 2012-02-13 20:23:20+00:00
State: open

Dear Mike,

I tried to use the following data frame:

'data.frame':	33 obs. of 4 variables:
$ species: Factor w/ 10 levels "Calyptommatus leiolepis",..: 9 4 10 2 10 8 3 1 5 7 ...
$ block : Factor w/ 4 levels "alagoado","catimbau",..: 2 2 2 4 4 3 3 1 1 1 ...
$ TSM : num 3.884 8.984 3.884 -0.854 1.446 ...
$ factor : Factor w/ 3 levels "TSM","TSMbush",..: 1 1 1 1 1 1 1 1 1 1 ...

With the following function:

TSMresults=ezANOVA(
data=data
, dv=data$TSM
, wid=data$species
, within = data$factor
, between = data$block
, observed = NULL
, diff = NULL
, reverse_diff = FALSE
, type = 2
, white.adjust = FALSE
, detailed = TRUE
, return_aov = TRUE
)

However, it comes the error you saw in the title:
Error en ezANOVA_main(data = data, dv = dv, wid = wid, within = within, :
"3.884" is not a variable in the data frame provided.
I am not able to understand what this msg is trying to tell me nor how to run the analysis.
The value 3.884 is in fact not a variable, but just the first value of the dependent variable "TSM"

Could you please give me some light on this?
Thanks a lot!
Agus