Hello All;
I am trying to get a situation of matching for multiple treatments resolved via cem but ran into an error message with my data. I then switched to a randomly generated data frame (see below) but still get the error message. Any clues as to the culprit?
> set.seed(03092013)
> a <- as.factor(c(rep(1,35),rep(2,35), rep(3,30)))
> b <- runif(100, min=0, max=100)
> my.dat <- data.frame(a, b)
> mat <- cem(treatment="a", data="my.dat")
Error: Data must be a data frame
> class(my.dat)
[1] "data.frame"
> str(my.dat)
'data.frame': 100 obs. of 2 variables:
$ a: Factor w/ 3 levels "1","2","3": 1 1 1 1 1 1 1 1 1 1 ...
$ b: num 20.4 16.7 87 81.1 87.9 ...
many thanks in advance!!
Ani