Displaying 14 results from an estimated 14 matches for "oddsratios".
Did you mean:
oddsratio
2012 May 04
0
oddsratio epitool and chi-square
Here is a working snippet.
library(epitools)
mat <- matrix(c(10,15,60,25,98, 12,10,70,28,14, 9,11,68,10,12
,8,13,20,11,58) ,ncol=2)
colnames(mat) <- c("treatmentA","treatmentB")
row.names(mat) <- paste("Cond",rep(1:10,1))
dimnames(mat) <- list("Condition" = row.names(mat), "instrument" =
colnames(mat))
> mat
instrument
2012 May 04
0
oddsratio and some basic help on epitools
Here is a working snippet.
library(epitools)
mat <- matrix(c(10,15,60,25,98, 12,10,70,28,14, 9,11,68,10,12
,8,13,20,11,58) ,ncol=2)
colnames(mat) <- c("treatmentA","treatmentB")
row.names(mat) <- paste("Cond",rep(1:10,1))
dimnames(mat) <- list("Condition" = row.names(mat), "instrument" =
colnames(mat))
> mat
instrument
2008 Jan 27
1
OR estimate
Hello,
I have a loop with 1000 repetitions which includes OR computation of an
exposure factor and outcome.
I compute OR like this:
t<-table(exposure,outcome)
oddsratio(t)$measure["estimate"]
This gives me the estimates for exposure=0 and exposure=1 but exposure=0 is
the reference group and i need only the estimate for exposure=1.
I specified a matrix OR with 3 columns (for OR
2007 Jun 11
1
epitools and R 2.5
At work after updating to R 2.5 I get an error using epitab from package
epitools, when at home (R 2.4) I get no error. Could someone help me?
Thanks
Pietro Bulian
Servizio di Onco-Ematologia Clinico-Sperimentale
I.R.C.C.S. Centro di Riferimento Oncologico
Via Franco Gallini 2
33081 Aviano (PN) - Italy
phone: +39 0434 659 412
fax: +39 0434 659 409
e-mail: pbulian at cro.it
(at work)
2008 Dec 11
1
help with predict in stats4
Hi,
We're using stats4 for a logistic regression. The code is
chdreg.logit2 <- glm(chd ~ age + sex, family = binomial)
summary(chdreg.logit2)
oddsratios <- coef(chdreg.logit2)
exp(oddsratios)
# Calculate model predicted values
pred <- predict(chdreg.logit2,type="response")
The glm part runs fine, and up to now so has the predict function.
However, now we're getting the following error
Error in function (classes, fdef, mtabl...
2010 Apr 12
1
R CMD check tells me 'no visible binding for global variable ', what does it mean?
When I run R CMD check on a package I have recently started work on I
get the following:
* checking R code for possible problems ... NOTE
addlinear: no visible binding for global variable 'x'
I appreciate that this is only a NOTE and so I assume is R's
equivalent of 'This is perfectly legal but I wonder whether it is
really what you intended' but I would like to understand
2005 Jun 24
1
comparing strength of association instead of strength of evidence?
Hi,
I asked this question before, which was hidden in a bunch of
questions. I repharse it here and hope I can get some help this time:
I have 2 contingency tables which have the same group variable Y. I
want to compare the strength of association between X1/Y and X2/Y. I
am not sure if comparing p-values IS the way even though the
probability of seeing such "weird" observation under H0
2009 Nov 22
1
Metaplot Axis Annotation
Hello,
We are looking to adjust the font size of the axis annotation on the graph
that results from use of the metaplot() function. Metaplot seems to respond
to cex and cex.lab to change those graphical parameters, but it doesn't
respond to cex.axis. Is there a way to work around this by creating a
customized x-axis, and if so, how?
Thanks for all your help. Syntax is below.
Best,
Dawn
2011 Jul 10
1
Odds Ratio for evaluating Diagnostic tests
Hi friends,
I have a doubt reg the application of odds ratio.
When evaluating a diagnostic test, what odds ratio I should apply?
When I use..
*>oddsratio (X)** *
the OR I get is not ad/bc.
Thank you.
Regards,
Dr Manoj Aravind,
PG Resident,
Dept of Community Medicine,
Osmania Medical College,
Hyderabad, India.
[[alternative HTML version deleted]]
2010 Jan 27
1
Possible bug in fisher.test() (PR#14196)
# is there a bug in the calculation of the odds ratio in fisher.test?
# Nicholas Horton, nhorton at smith.edu Fri Jan 22 08:29:07 EST 2010
x1 = c(rep(0, 244), rep(1, 209))
x2 = c(rep(0, 177), rep(1, 67), rep(0, 169), rep(1, 40))
or1 = sum(x1==1&x2==1)*sum(x1==0&x2==0)/
(sum(x1==1&x2==0)*sum(x1==0&x2==1))
library(epitools)
or2 = oddsratio.wald(x1, x2)$measure[2,1]
or3 =
2010 Sep 19
1
odds ratios for n-way tables: seeking an *apply-able method
I'm looking for a way to generalize the calculation of (log) odds
ratios for 2 x 2 x {strata} frequency
tables in vcd::oddsratio() to R x C x {strata} tables.
For an R x C table, F, odds ratios can be defined
in several ways; one simple way, particularly for tables with ordered
factors, is to calculate the
set of continuation odds ratios, based on the (R-1)x(C-1) set of 2x2
tables with
2007 Feb 24
1
Woolf's test, Odds ratio, stratification
Just a general question concerning the woolf test (package vcd), when we have
stratified data (2x2 tables) and when the p.value of the woolf-test is
below 0.05 then we assume that there is a heterogeneity and a common odds
ratio cannot be computed?
Does this mean that we have to try to add more stratification variables
(stratify more) to make the woolf-test p.value insignificant?
Also in the
2008 Sep 23
3
odds ratio: how to create reference
HI there,
i know this is a basic question, though i need some help because this
is somewhat away from my current issue, but nevertheless interesting
to me... Lets assume i have some estimated probabilities, say
estimated by a logit model. i know i can also state them as an odds
ratio.
Now i?d like to state these odds ratios as a reference to a specific
outcome of my investigated
2012 May 04
0
epitools question
Here is a working snippet.
library(epitools)
mat <- matrix(c(10,15,60,25,98, 12,10,70,28,14, 9,11,68,10,12
,8,13,20,11,58) ,ncol=2)
colnames(mat) <- c("treatmentA","treatmentB")
row.names(mat) <- paste("Cond",rep(1:10,1))
dimnames(mat) <- list("Condition" = row.names(mat), "instrument" =
colnames(mat))
> mat
instrument