[R] Lmer plot help

2011-09-03 Thread drewmac
Hello all

I'm running the lme4 package on my binomial data, and I'm happy with the
model and the resultant plot. However, I'd like to plot my table data, which
has: two IVs, and one DV. You can see an example below,  where 'attractive'
= question (IV), male = condition(IV/predictor) and no/yes = answer (dv).
I'm using the table to investigate what questions act differently to the
others, so I can better fit my model. Going through tables of numbers
doesn't seem the most efficient way of instantly seeing what questions work
differently, and I'd like to plot that.

Here is my code:

 table(finaldata$Voice, finaldata$supportive, finaldata$question)  
#generates my table#




, ,  = attractive

  
no yes
  male1   28  35
  male2   20  22
  female121  21
  female230  19

Any help most appreciated.

Drew

--
View this message in context: 
http://r.789695.n4.nabble.com/Lmer-plot-help-tp3788613p3788613.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Lmer coef table

2012-06-10 Thread drewmac
Hi all,

I would like to print the results of my lmer model (lme4) into a table that
can be sweaved into Latex. I am aware that xtable does not support lme
objects. I have tried the suggestions in the following thread:

https://stat.ethz.ch/pipermail/r-help/2010-February/229002.html:

I have success with the coef(summary(mymodel)) code, but can this be
exported as a table?

My lmer model looks like this:

modela<-lmer(log(Stimulus.RT) ~ voice.age + Block +expnum+(1|Subject) +
(1|mtrial),dat)

All suggestions appreciated

Andrew

--
View this message in context: 
http://r.789695.n4.nabble.com/Lmer-coef-table-tp4632967.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.