On 11 Jan 2014, at 19:09 , Razi Zaidi wrote:
> Hi there
>
> I have the dataframe below saved in an object /tst/
>
> agegrp bmigrp pep n
> 1 1 a 0 2
> 2 2 a 0 2
> 3 3 a 0 0
> 4 1 b 0 47
> 5
Hi there
I have the dataframe below saved in an object /tst/
agegrp bmigrp pep n
1 1 a 0 2
2 2 a 0 2
3 3 a 0 0
4 1 b 0 47
5 2 b 0 43
6 3 b 0 31
7
hi all,
does anyone know if R can do exact logistic regression with correlated
binary data?
Thanks!!
Yue
--
View this message in context:
http://r.789695.n4.nabble.com/exact-logistic-regression-with-correlated-data-tp4635900.html
Sent from the R help mailing list archive at Nabble.com.
__
I believe that this code will work (...for very small) samples, but let some
correct me if there is something wrong.
require(logistf);require(combinat)
permY<-permn(data$y)
ntimes<-length(permY)
results<-matrix(nrows=ntimes,ncols=number_of_coefficients)
for(i in 1:ntimes){
results[i,]<-logistf(unl
Dear Łukas
Thank you very much
...FOR EACH ROW...
That's cool
data2elrm<-cbind(mydata,n=1)
With best regards
Denis
У Пят, 04/02/2011 у 22:16 +0100, Łukasz Ręcławowicz піша:
>
>
> 2011/2/4 Den
> To use elrm() I have to aggregate my data,which is really time
> consuming
>
l Message -
> From: "Den"
> To: "R-help"
> Sent: Friday, 4 February, 2011 8:44:04 AM
> Subject: [R] exact logistic regression
>
> Hate to say that, but it looks like Stata is way above R, considering
> exact logistic regression.
> To use elrm()
data2elrm<-cbind(mydata,n=rep(1,dim(mydata)[1]))
>
More logic would be:
data2elrm2<-cbind(mydata,n=rep(1,nrow(mydata)))
Sorry for obfuscation.
--
Mi³ego dnia
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://
2011/2/4 Den
> To use elrm() I have to aggregate my data,which is really time consuming
> when I look for the way out through many variables.
You don't have to do that. *One exception is that the binomial response
should be specified as success/trials, where success gives the number of
successes
Hate to say that, but it looks like Stata is way above R, considering
exact logistic regression.
To use elrm() I have to aggregate my data,which is really time consuming
when I look for the way out through many variables. But the worst thing
is that I am not not sure if I can trust to p-values in
Dear Łukasz
Thank you very much for information
Dear R people could you please help please with following questions
Sorry for my silly questions, because I am not a mathematician.
1. Is elrm() works similar as exact regression in SAS or Stata? After
double check in Stata and R some results from m
2011/2/3 Den
>
> Thank you again
> It is funny how stupid I was
Elrm, clogit {survival} or exactLoglinTest are only "exact-like", the truth
is, R don't have it... and glm is poor.
http://sas-and-r.blogspot.com/2010/12/example-818-monte-carlo-experiment.html
http://sas-and-r.blogspot.com/2010/1
Dear Dennis
Thank you again
It is funny how stupid I was. I was afraid of the word "inference" in
elrm package description while performing my first search.
elrm package looks like what I need.
They have very good intro with examples
Zamar D, McNeney B and Graham J. elrm: Software Implementing
Hi:
Try package elrm - its description file says that it performs exact logistic
regression by MCMC. I found this as the first set of hits I got from
# install.packages('sos') # if necessary
library(sos)
findFn('exact logistic regression')
HTH,
Dennis
On Wed, Feb 2, 2011 at 8:43 AM, Den w
Hello to R people
Does anybody know to calculate exact logistic regression in R?
Does such option exist anywhere?
Surprisingly, could not find it using search engine. It is hard to
believe, however, that such useful function is not implemented in R yet?
Could you help, please
Thank you
Denis
14 matches
Mail list logo