Displaying 20 results from an estimated 1000 matches similar to: "Extract p-value from survdiff function"
2007 Dec 13
2
Function for AUC?
Hello
Is there an easy way, i.e. a function in a package, to calculate the
area under the curve (AUC) for drug serum levels?
Thanks for any advice
--
Armin Goralczyk, M.D.
--
Universit?tsmedizin G?ttingen
Abteilung Allgemein- und Viszeralchirurgie
Rudolf-Koch-Str. 40
39099 G?ttingen
--
Dept. of General Surgery
University of G?ttingen
G?ttingen, Germany
--
http://www.chirurgie-goettingen.de
2009 Jul 30
2
lattice shingle plot axis annotation
Hello (R-)Experts
I hope someone can help with this problem concerning axis annotation
of a lattice shingle plot. I want a plot with three shingles to
display some laboratory value over time. In the first panel over the
first few days, then in the next panel some months, and in the last
panel some years. In the following minimal example the axis annotation
will be in days, but I'd like to
2008 Apr 05
2
Conditional ploting with logical vector
Hi list
Maybe someone can help with the following problem (thanks in advance):
In a function I have a plot and want to add symbols/text only when
indicated by a logical vector (which was generated by the function
before, not manually like in the following example):
plot(1:10, 1:10)
lv <- c(T,T,T,F,F,F,T,T,T,F)
text(1:10, 1:10, '*', pos = 3)
In this example the asterisk is plotted at
2012 Oct 19
2
Question about survdiff in for-loop.
Hi everyone!!
I have dataset composed of a numbers of survival analyses.
( for batch survival analyses by using for-loop) .
Here are code !!
#######
dim(svsv)
Num_t<-dim(svsv)
Num<-Num_t[2] # These are predictors !!
names=colnames(svsv)
for (i in 1:Num )
{
name_tt=names[i]
survdiff(Surv(survival.m, survival) ~ names[i], data=svsv)
fit.Group<-survfit(Surv(survival.m, survival) ~
2008 Dec 04
1
Comparing survival curves with "survdiff" "strata" help
ExpeRts,
I'm trying to compare three survival curves using the function "survdiff" in the survival package. Following is my code and corresponding error message.
> survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata)
Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) :
No groups to test
When I check the "strata" of the variable. I get .
2012 Oct 18
1
looping survdiff?
Hello,
I am trying to set up a loop that can run the survdiff function with the
ultimate goal to generate a csv file with the p-values reported. However,
whenever I try a loop I get an error such as "invalid type (list) for
variable 'survival_data_variables[i]".
This is a subset of my data:
structure(list(time = c(1.51666666666667, 72, 72, 25.7833333333333,
72, 72, 72, 72, 72,
2009 Sep 16
2
Teasing out logrank differences *between* groups using survdiff or something else?
R Folk:
Please forgive what I'm sure is a fairly na?ve question; I hope it's clear.
A colleague and I have been doing a really simple one-off survival analysis,
but this is an area with which we are not very familiar, we just happen to
have gathered some data that needs this type of analysis. We've done quite
a bit of reading, but answers escape us, even though the question below
2001 Nov 22
1
p-value using survdiff
Dear all,
Does anyone knows how I could extract the p-value in:
> survdiff(Surv(tempo,status) ~ grupo,data=dados1,rho=1)
Call:
survdiff(formula = Surv(tempo, status) ~ grupo, data = dados1, rho = 1)
N Observed Expected (O-E)^2/E (O-E)^2/V
grupo=1 21 5.12 12.00 3.94 14.5
grupo=2 21 14.55 7.68 6.16 14.5
Chisq= 14.5 on 1 degrees of freedom,
2010 Jul 07
1
Appropriateness of survdiff {survival} for non-censored data
I read through Harrington and Fleming (1982) but it is beyond my
statistical comprehension. I have survival data for insects that have
a very finite expiration date. I'm trying to test for differences in
survival distributions between different groups. I understand that
the medical field is most often dealing with censored data and that
survival analysis, at least in the package survival,
2012 Oct 19
1
Looping survdiff
The number of recent questions from umn.edu makes me wonder if there's homework involved....
Simpler for your example is to use get and subset.
dat <- structure(..... as found below
var.to.test <- names(dat)[4:6] #variables of interest
nvar <- length(var.to.test)
chisq <- double(nvar)
for (i in 1:nvar) {
tfit <- survdiff(Surv(time, completion==2) ~
2005 Nov 23
1
survdiff for Left-truncated and right-censored data
dear all,
I would like to know whether survdiff and survReg function in the
survival package work for left-truncated and right-censored data.
If not, what other functions can i use to make comparison between two
survival curves with LTRC data.
thanks for any help given
sing yee
2013 Apr 29
3
Comparing two different 'survival' events for the same subject using survdiff?
I have a dataset which for the sake of simplicity has two endpoints. We would like to test if two different end-points have the same eventual meaning. To try and take an example that people might understand better:
Lets assume we had a group of subjects who all received a treatment. The could stop treatment for any reason (side effects, treatment stops working etc). Getting that data is very
2009 Aug 03
1
survdiff for left-truncated data?
Hi
Does anyone know if there is a function like survdiff which can also handle
left-truncated and right-censored data? When I use it on left-truncated and
right-censored data I get an error message saying Right censored data only.
Many thanks
Rajen
[[alternative HTML version deleted]]
2007 Oct 04
2
plot from source file
Dear list
Maybe someone can help with the following problem:
I have a source file containing the following code for plotting:
pdf(file = 'data/mario/boxplot.pdf')
bwplot(sig100 ~ target | group, data = fish, main = 'Boxplot der
Signale in 100 Zellen nach Gruppe', xlab = '', ylab = 'Anzahl der
Signale')
dev.off()
pdf(file = 'data/mario/xyplot.pdf')
2004 Aug 17
1
survdiff
Hello,
As I am quitte an ignorant user of R, excuse me for any wrongfull usage of
all the terms.
My question relates to the statistics behind the survdiff function in the
package survival.
My textbook knowledge of the logrank test tells me that if I want to compare
two survival curves, I have to take the sum of the factors: (O-E)^2/E of
both groups, which will give me the Chisq.
If I calculate
2010 Jun 01
2
MacOS X binary for lme4 not available on CRAN
Dear group,
I have noticed that the MacOS X binary for lme4 is not available on
CRAN at the moment. I am aware that it may be possible to install from
source but I am not very familiar with that procedure and would rather
avoid it. But I need the package for a statistics course next week. So
can anybody give an update about the situation with the MacOS X
binaries? Will it be resolved within the
2007 Oct 09
1
Visualize cox proportional hazards
Hello all
I would like to visualize the hazard ratios of a cox proportional
hazards model. I have seen some good examples in the New England
Journal of Medicine:
http://content.nejm.org/cgi/content/short/353/26/2747/F3
http://content.nejm.org/cgi/content/short/350/26/2654/F2
(I hope these are open access, but I am not sure)
And something similar in the book 'R Graphics' by Paul
2008 Jan 22
1
Lattice on FreeBSD
Hi list
I tried to install package lattice on FreeBSD, but install.package()
does not seem to find it in the repositories, even trying different
mirrors. Could it be that lattice package is not available for
FreeBSD?
--
Armin Goralczyk, M.D.
--
Universit?tsmedizin G?ttingen
Abteilung Allgemein- und Viszeralchirurgie
Rudolf-Koch-Str. 40
39099 G?ttingen
--
Dept. of General Surgery
University of
2005 Aug 16
2
quirky behavior from rbinom (PR#8071)
Full_Name: Chris Paulse
Version: 2.1.1
OS: WinXP
Submission from: (NULL) (129.98.60.134)
This seems strange. I have a small block of code that repeatedly calls rbinom.
I put a break in there in case it returns NaN, as I've been having problems with
this. Here is a transcript from the debug session:
Browse[1]> theP
[1] 1
Browse[1]> yleft[dataIndex]
[1] 3
Browse[1]> rbinom(1,3,1)
2011 Jul 21
0
Survdiff for multiple comparisons
Hello all-
I am doing a survival analysis for two species of invasive plants I
outplanted to edges and interiors of island and mainland sites in a local
reservoir. I am using the KM estimate and had no problem doing survdiff for
my data using the following code:
S4<-Surv(outplant$SurvTime, outplant$StatusD6)
diff4=survdiff(S4 ~ outplant$Species+outplant$SiteType+outplant$EdgInt)
diff4