I've computed a loglinear model on a categorical dataset. I would like to test whether an interaction can be dropped by comparing the log-likelihoods from two models(the model with the interaction vs. the model without). Since R does not immediately print the log-likelihood when I use the "glm" function, I used SAS initially. After searching for an extracting function, I found one in R. But, the log-likelihood given by SAS is different from the one given by R. I'm not sure if the "logLik" function in R is giving me something I don't want. Or if I'm misinterpreting the SAS output. Can anyone help? -- View this message in context: http://www.nabble.com/Log-likelihood-function-tf3678882.html#a10280717 Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help@stat.math.ethz.ch 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.