Displaying 7 results from an estimated 7 matches similar to: "Survival prediction"
2012 Jul 06
3
Tables extraction in R ?
Hi,
I 'm a novice user of R statistics and my hands-on experience with it is
minimal.
I want to create a table for my MBA course assignment that looks like the
ones that SPSS and MS Excel produces ,the data that the table has to include
are the following :
> table(agec)
agec
1 2 3
749 160 32
> x=table(agec)
> x
agec
1 2 3
749 160 32
>
> prop.table(x)
agec
2011 Jun 01
1
How to write random effect in MCMCglmm
Hi All,
The data set that I have is a cluster data, and I want to run a HLM mixed
model with multi-level response. Here is my data set:
response:
- Level (num: 1, 2, 3, 4, 5 - 5 levels)
Covariates:
- Type (Factor: A, B, C - 3 levels)
- yr (num: 2006, 2007, ...)
- Male (num: 0=not Male, 1=Male - 2 levels)
- Ethnicity (Factor: A, B, H, ..., - 7 levels)
- ELL (num: 0, 1, - 2
2006 Jun 23
1
How to use mle or similar with integrate?
Hi
I have the following formula (I hope it is clear - if no, I can try to
do better the next time)
h(x, a, b) =
integral(0 to pi/2)
(
(
integral(D/sin(alpha) to Inf)
(
(
f(x, a, b)
)
dx
)
dalpha
)
and I want to do an mle with it.
I know how to use mle() and I also know about integrate(). My problem is
to give the parameter values a and b to the
2010 May 09
1
Plot polygon in 3D with rgl
Dear R-helpers, an rgl-ers in particular,
what is the easiest way to plot a section of a plane in 3D, that is
given by the xyz coordinates of the outline?
Suppose I have a polygon - which I know for sure is a set of
coordinates on the same plane. One method I found is to use surf.tri
from the geometry package, and then plot the triangles with
rgl.triangles. This method is not perfect though,
2011 Dec 26
2
Problem of COX model with time dependent covariate
Hi all,
I am trying to detect association between a covariate and a disease outcome using R. This covariate shows time-varying effect, I add a time-covariate interaction item to build Cox model as follows:
COX <- coxph(as.formula("Surv(TIME,outcome)~eGFR_BASE+eGFR_BASE:TIME"),ori.data);
coef exp(coef) e(coef) z p
eGFR_BASE
2009 Apr 24
3
Help with for/if loop
I have a set of data that includes various data columns. One if the survival
time and another if a continuous variable of ages. I want to put the ages
into intervals so that I can then perform the Kalpan Meier test. I am trying
to use the following code to build a column with the age group numbers in
agecatagory<-c( )
for (i in 1:137)
{
{
if(age[i]<=46) {agecat[i]<-1}
if(age[i]>46
2003 Jun 06
2
Moran's index
Hi,
I am looking for some code for Moran's I. Has anyone previously done this?
I have been unable to find it in the search engines.
James