Displaying 4 results from an estimated 4 matches for "atrisk".
Did you mean:
atrick
2006 Apr 17
7
help
Hi, I am trying to runn a age-period-cohort model, but here is what I am
having problem with, hope you can help me!
This is what I am trying to do:
sumzero_a<-((A-min(A))/5+1) - mean((A-min(A))/5+1) where A is my age
variable (numeric, the mid-point of a five-year age group), but I got the
following error:
Error in min(..., na.rm = na.rm) : invalid 'mode' of argument
I am pretty
2011 Jul 13
2
life table and Kaplan-Meier
Hello, I have a question about the function lifetab in package KMsurv.
The description of the output value surv says "the estimated survival
function at the start of the intervals".
Are these estimates the ones calculated via Kaplan-Meier probability of
survival ?
Thanks in advance!
--
View this message in context:
2006 Apr 25
4
Help needed
...dset[,1])
> minage<-min(dset[,1])
> #maxcls<-dset[,2]
> #mincls<-dset[,2]
> nage<-maxage-minage+1
> nclass<-maxcls-mincls+1
> nsub<-nrow(dset)
> weight <- matrix(,nage,1)
> for ( i in minage:maxage )
+ {weight[i-minage+1,1] = sum(std = i)}
>
> atrisk = matrix(,nclass,nage)
> wevents = matrix(,nclass,nage)
> #reduce data set to frequency table
> for( i in (minage : maxage))
+ for( j in (mincls : maxcls))
+ #atrisk1<-aggregate(dset[,c("AGEGRP","BMIGRP")],list(RANDID=dset1$RANDID,sum)
+
+ {atrisk[j-mincls+...
2007 Nov 29
2
library(RII)
Se ha borrado un texto insertado con un juego de caracteres sin especificar...
Nombre: no disponible
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071129/f0d6a91a/attachment.pl