Re: [R] likelihood ratio test for mean difference assuming unequal variance

2014-01-13 Thread Ben Bolker
Amanda Li uchicago.edu> writes: > > Hello, > > I am so sorry, but I have been struggling with > the code for the entire day. > > I have a very simple dataset that looks like this: > response=c(45,47,24,35,47,56,29) > sub=c("A","A","B","B","C","C","C"£© > time=c(1,2,1,2,1,2,3) > gdata=cbind(re

[R] likelihood ratio test for mean difference assuming unequal variance

2014-01-13 Thread Amanda Li
Hello, I am so sorry, but I have been struggling with the code for the entire day. I have a very simple dataset that looks like this: response=c(45,47,24,35,47,56,29) sub=c("A","A","B","B","C","C","C"£© time=c(1,2,1,2,1,2,3) gdata=cbind(response,sub,time) Namely, for three subjects, each has 2 o