Displaying 5 results from an estimated 5 matches for "med1".
Did you mean:
md1
2010 Nov 29
4
subset
?Hi:
I always use subset the same way but now is returning 0 rows.
What's wrong with the way I am subsetting?
library(ggplot2)
structure(list(first = c(38.2086, 43.1768, 43.146, 41.8044, 42.4232,
46.3646, 38.0813, 40.0745, 40.4889, 38.6246, 40.2826, 41.6056,
34.5353, 40.0768), second = c(43.3295, 42.4326, 38.8994, 37.0894,
42.3218, 46.1726, 39.1206, 41.2072, 42.4874, 40.2657, 38.7766,
2012 Nov 13
4
for loop
HI,
You can do this in many ways:
dat1<-read.table(text="
med1,med2,med3????
?1,0,1??????
0,1,1???
2,0,0
",sep=",",header=TRUE)??
#1st method
library(reshape)
dat2<-melt(dat1)
dat3<-aggregate(dat2$value,by=list(dat2$variable),sum)
?colnames(dat3)<-c("name","sum(n11)")
?dat3
#? name sum(n11)
#1 med1??????? 3
#2...
2011 Nov 30
1
Nomogram with stratified cph in rms package, how to get failure probability
...zard") :
no applicable method for 'Hazard' applied to an object of class "c('cph',
'Design', 'coxph')"
surv10 <- function(lp) surv(10,lp)
surv5 <- function(lp) surv(5,lp)
quant <- Quantile(f1)
at.surv <- c(0.1, 0.3, 0.5, 0.7, 0.9)
at.med1<-c(2,3,4, 5,6,7,8, 10,15,20,25, 30)
par(cex=0.8)
nom<- nomogram(f1, conf.int=F,
fun=list(surv5, surv10), funlabel=c('5-Year Survival Probability', '10-Year
Survival Probability' ), lp=F,
fun.at=c(at.surv, at.surv),label.every=1, force.label=FALSE, cex.axis=0.8,
verbose=TRUE...
2011 Nov 29
2
Nomogram with stratified cph in Design package-- failure probability
...ard") :
no applicable method for 'Hazard' applied to an object of class "c('cph',
'Design', 'coxph')"
surv10 <- function(lp) surv(10,lp)
surv5 <- function(lp) surv(5,lp)
quant <- Quantile(f1)
at.surv <- c(0.1, 0.3, 0.5, 0.7, 0.9)
at.med1<-c(2,3,4, 5,6,7,8, 10,15,20,25, 30)
par(cex=0.8)
nom<- nomogram(f1, conf.int=F,
fun=list(1-surv5, 1-surv10), funlabel=c('5-Year Survival Probability',
'10-Year Survival Probability' ), lp=F,
fun.at=c(at.surv, at.surv),label.every=1, force.label=FALSE, cex.axis=0.8,
verbose=...
2004 Aug 27
1
selecting unique columns of a matrix/data frame
...gt; https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
> ------------------------------
>
> Message: 109
> Date: Fri, 27 Aug 2004 09:35:07 +0200
> From: Raphael Schneider <rasch at med1.med.tum.de>
> Subject: Re: [R] read.spss warning: unrecognized record type??
> To: r-help at stat.math.ethz.ch
> Message-ID: <200408270935.07786.rasch at med1.med.tum.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Friday 27 August 2004 02:55, Mich...