Displaying 20 results from an estimated 6000 matches similar to: "Log-likelihood function"
2011 Jan 19
3
question about result of loglinear analysis
Hi all:
Here's a question about result of loglinear analysis.
There're 2 factors:area and nation.The raw data is in the attachment.
I fit the saturated model of loglinear with the command:
glm_sat<-glm(fre~area*nation, family=poisson, data=data_Analysis)
After that,I extract the coefficients:
result_sat<-summary(glm_sat)
result_coe<-result_sat$coefficients
I find that all the
2004 Jan 29
2
Loglienar models
Hello,
I'm planning to start using R. Before getting into it, I'd like to
ask a couple of questions. Does R carry out loglinear model analysis?
That is, will it provide the chi-squared goodness of fit test statistic
for a given hierarchical loglinear model? Maybe even do a model
selection procedure (like Brown's two-step procedure, or
forward/backward selection)? Thanks
2012 Apr 02
2
linear-by-linear association model in R?
Dear all, can somebody give me some pointer how I can fit a
"linear-by-linear association model" (i.e. loglinear model for the
ordinal variables) in R? A brief description can be found here
'https://onlinecourses.science.psu.edu/stat504/node/141'.
Thanks for your help
2007 Mar 19
1
likelihoods in SAS GENMOD vs R glm
List: I'm helping a colleague with some Poisson regression modeling. He
uses SAS proc GENMOD and I'm using glm() in R. Note on the SAS and R
output below that our estimates, standard errors, and deviances are
identical but what we get for likelihoods differs considerably. I'm
assuming that these must differ just by some constant but it would be nice
to have some confirmation
2013 Apr 24
2
Regression on stratified count data
Hi all:
For stratified count data,how to perform regression analysis?
My data:
age case oc count
1 1 1 21
1 1 2 26
1 2 1 17
1 2 2 59
2 1 1 18
2 1 2 88
2 2 1 7
2 2 2 95
age:
1:<40y
2:>40y
case:
1:patient
2:health
oc:
1:use drug
2:not use drug
My purpose:
Anaysis whether case and
2003 Feb 12
1
models for square tables
I've posted a sample file for estimating loglinear models for square
tables (mobility models) at http://www.xs4all.nl/~jhckx/mcl/R/
Comments and suggestions are welcome.
John Hendrickx
2010 Apr 14
1
Sig differences in Loglinear Models for Three-Way Tables
Hi all,
I've been running loglinear models for three-way tables: one of the
variables having three levels, and the other two having two levels each.
An example looks like below:
> yes.no <- c("Yes","No")
> switch <- c("On","Off")
> att <- c("BB","AA","CC")
> L <- gl(2,1,12,yes.no)
> T <-
2012 Jun 08
1
Fwd: How to best analyze dataset with zero-inflated loglinear dependent variable?
Dear netters,
Sorry for cross-posting this question. I am sure R-Help is not a
research methods discussion list, but we have many statisticians in
the list and I would like to hear from them. Any function/package in R
would be able to deal with the problem from this researcher?
---------- Forwarded message ----------
From: Heidi Bertels
Date: Tue, Jun 5, 2012 at 4:31 PM
Subject: How to best
2009 Apr 20
4
automatic exploration of all possible loglinear models?
Is there a way to automate fitting and assessing loglinear models for
several nominal variables . . . something akin to step or drop1 or add1
for linear or logistic regression?
Thanks.
--Chris
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
40 Arch Street, Johnson City, NY 13790
cryanatbinghamtondotedu
"If you want to build a ship, don't drum
2010 Mar 14
3
likelihood ratio test between glmer and glm
I am currently running a generalized linear mixed effect model using glmer and I want to estimate how much of the variance is explained by my random factor.
summary(glmer(cbind(female,male)~date+(1|dam),family=binomial,data= liz3"))
Generalized linear mixed model fit by the Laplace approximation
Formula: cbind(female, male) ~ date + (1 | dam)
Data: liz3
AIC BIC logLik deviance
241.3
2002 Oct 23
2
loglinear models
I am using the loglin function of the base package to fit log-linear models.
I am interested in obtaining the parameter values and their standard errors.
Parameters are easily obtained, but I haven't found the way of obtaining
their standad errors. Is this possible with the loglin function? If not, is
there any other function to get them?
Many thanks,
--
Vicente Piorno
Departamento de Ecolox?a
2005 Mar 23
1
Negative binomial GLMMs in R
Dear R-users,
A recent post (Feb 16) to R-help inquired about fitting
a glmm with a negative binomial distribution.
Professor Ripley responded that this was a difficult problem with the
simpler Poisson model already being a difficult case:
https://stat.ethz.ch/pipermail/r-help/2005-February/064708.html
Since we are developing software for fitting general nonlinear random
effects models we
2000 Jul 25
1
glm and capture-recapture
Hello,
I am almost new in R, so perhaps my question will be silly.
I try to use R for analyzing capture-recapture data in epidemiology. A cancer registry has different sources of patients. We know in each list, patients already known in all other list. The aim is to use capture-recapture models for estimating the number of patients unknow of all the sources.
Because no order in sources, one
2009 May 19
1
loglinear analysis
Dear R Users,
A would like to fit a loglinear analysis to a three dimensional contingency
table. But I Don't want to run a full saturated modell. Is there any package
in R that could handle somekind of stepwise search to choose out the best
soultion? And how can I fit a non fully saturated modell, which only use the
important interactions?
Best Regards
Zoltan Kmetty
[[alternative HTML
2009 Oct 20
1
2x2 Contingency table with much sampling zeroes
Hi,
I'm analyzing experimental results where two different events ("T1"
and "T2") can occur or not during an experiment. I made my experiments
with one factor ("Substrate") with two levels ("Sand" and "Clay").
I would like to know wether or not "Substrate" affects the occurrence
probability of the two events. Moreover, for each
2008 Jun 24
2
How to solve empty cells in the contingency table?
Hi,Dear all R experts,
I am trying to do the 2-way contingency table analysis by fitting the loglinear models. However, I found my table has several empty cells which are theoretically missing values.I have no idea of how to solve them coz we cannot compute the simulated p-value with zero marginals.Does someone have some suggestions? Please help me out, thanks a lot!
Cheers,
Yan
2011 Sep 15
4
question about glm vs. loglin()
Dear R gurus,
I am looking for a way to fit a predictive model for a contingency table which has counts. I found that glm( family=poisson) is very good for figuring out which of several alternative models I should select. But once I select a model it is hard to present and interpret it, especially when it has interactions, because everything is done "relative to reference cell". This
2005 Aug 30
1
loglinear model selection
Hi R-masters!
I have a problem and need your help.
I have 9 discrete variables with 2 levels each.
In exploratory analisys I generate one matrix with chi-square for tables
with 2 ariables each with this script
setwd("F:/")
dados<-read.csv("log.csv")[,2:10]
dados.x<-matrix(NA,ncol=9,nrow=9)
for(i in 1:8){
for(j in (i+1):9){
tab<-table(dados[,i],dados[,j])
2006 Jul 10
2
about overdispersed poisson model
Dear R users
I have been looking for functions that can deal with overdispersed poisson
models. According to actuarial literature (England & Verall, Stochastic Claims
Reserving in General Insurance , Institute of Actiuaries 2002) this can be handled through the
use of quasi likelihoods instead of normal likelihoods. However, we see them frequently
in this type of data, and we would like to
2003 Jan 16
3
Overdispersed poisson - negative observation
Dear R users
I have been looking for functions that can deal with overdispersed poisson
models. Some (one) of the observations are negative. According to actuarial
literature (England & Verall, Stochastic Claims Reserving in General
Insurance , Institute of Actiuaries 2002) this can be handled through the
use of quasi likelihoods instead of normal likelihoods. The presence of
negatives is not