0
votes
0answers
13 views

Result of the summary of the proportional hazard model with frailty in R

I am trying to fit coxph a model with frailty with syntax below: ...
0
votes
0answers
13 views

Extended COX model in R [on hold]

Objective: To predict time to event of a customer using R I developed a Non parametric model but as per my understanding we cannot perform predictions from these models, so I have to build a model ...
0
votes
1answer
68 views

Is it possible to construct a discrete-time multilevel hazard model in R?

I'm trying to run a discrete-time multilevel hazard analysis comparable to the model proposed by Barber et al. I am attempting to model the hazard of migrating internationally using predictors at the ...
1
vote
0answers
19 views

Would this be a problem that Survival Analysis can tackle? The problem deals with localized durations and uncensored data

I am trying to fit a model in R that doesn't have censoring. In other words, I know that each event will eventually happen. There are several experimental groups with people in each group receiving ...
0
votes
0answers
8 views

How can I plot “intcox” interval cox proportional survival curve?

I'm doing survival analysis. I read intcox package manual but it doesn't provide R code for plotting survival curve. Anyone knows how to plot it? ...
4
votes
1answer
59 views

It it possible in R to specify a regression formula for the hazard rate for a survival analysis model?

I am currently trying to fit a survival analysis model which has the following survival function: $S(t) = \lambda_i e^{-\lambda_i t}$ but with $\lambda_i = e^{\beta_0 +\beta_1 log(1+X_i)}$ where ...
1
vote
1answer
24 views

Logrank test for trend (proportional hazards)

How one can create a logrank test for trend and does it differ from normal logrank test? Any suggestions or literature? Maybe some R examples and functions?
1
vote
0answers
47 views

Why are these MLE estimates biased?

I estimate the parameters of survival data with censoring which is simulated from Weibull distribution. The mean time to event was set to 10 by choosing the combinations of shape and scale ...
1
vote
1answer
31 views

survival packages in R that allow for time dependent covariates

Which survival packages in R explicitly allow for time dependent covariates? By explicitly, I mean that the package allows its models to accept a survival object with the form ...
0
votes
0answers
24 views

Is there a way to customize my likelihood function for logit models using speedglm/biglm/glm packages?

My goal is to fit a custom logistic regression/survival analysis function using the optim/maxBFGS functions in R and literally ...
1
vote
1answer
45 views

How does one derive the survival function from an accelerated time failure model in R?

I'm currently working with accelerated time failure models. However, when I fit a model using survreg in R, the predict function ...
-1
votes
0answers
22 views

How to compare a Cox model with a neural network model [duplicate]

I am trying to compare a Cox model with ANN in R, but I have some problems: The result of package coxph is a hazard rate, but the result of package ...
1
vote
0answers
48 views

how to use ggplot2 make recursive partitioning survival tree [closed]

can everyone tell me how to use ggplot2 make recursive partitioning survival tree? I know " party " package can make a plot in R, however the plot is not looking good, and all the plots in the rest ...
0
votes
0answers
23 views

Complete interpretation of Cox regression output in R

I need help with complete interpretation of this output(below). Can someone explain all (almost all) estimators in this output: what they mean and what is the substantive interpretation. In ...
0
votes
1answer
70 views

How to translate R to SQL for a Cox Proportional Hazards model?

I have built a cox model in R using the coxph function in the survival package, and now I need to replicate the model in SQL for scoring. From my understanding, the model has the form described on ...
0
votes
1answer
50 views

Survival Analysis in R with Grouped Data

I'm just getting started with survival analysis and I'm having trouble finding something in R that will do what I'm looking for. Most of the packages use survival ...
3
votes
1answer
47 views

How to generate survival data with time dependent covariates using R

I want to generate survival time from a Cox proportional hazards model that contains time dependent covariate. The model is $h(t|X_i) =h_0(t) \exp(\gamma X_i + \alpha m_{i}(t))$ where $X_i$ is ...
2
votes
1answer
60 views

Conditional expected lifetime in survival analysis

I want to do survival analysis with the Colon Cancer data in survival package: ...
3
votes
0answers
48 views

Survival Analysis why does probability drop to zero

I'm really new to stats and R and I suspect I'm missing something obvious. I have a set of memberships all who start after a point in time (six months ago). I have done my query to estimate the ...
1
vote
1answer
53 views

Survival analysis in R with left-truncated data

I am doing a survival analysis in R with the survival package. I think I am working with left-truncated data, but I'm not entirely sure how to handle it. I have a ...
0
votes
0answers
64 views

Predicting conditional expected lifetime by Cox model in R

I'm using a Cox proportional hazards model, estimate the hazard rate for Levamisole relative to 5-FU, adjusting for Age and Sex. ...
0
votes
0answers
51 views

How to simulate survival times using true base line hazard function

I want to simulate survival times from the model $\lambda(t|X_1,X_2) = \lambda_0(t) \exp(\gamma_1X_1+\gamma_2X_2)$ where covariates are given by $X_1\sim$Binomial(1,0.5), $X_2\sim$Uniform(0,1), the ...
2
votes
0answers
36 views

Testing significance for pairwise Kaplan-Meier survival analysis between groups and pooled data

I've been working on putting together a survival analysis using Kaplan-Meier and the logrank test. I am doing the testing in R with survdiff(). Each plot has multiple groups/curves, and I've been ...
0
votes
0answers
32 views

Include interaction in multiple imputation - r

I'm doing some imputation models of time until recurrence of tuberculosis (Cox model). This model should include an interaction between the time and the outcome of the previous episode of disease (0- ...
1
vote
0answers
53 views

Error in adding interaction in Cox model?

I'm doing a survival analysis and after plotting the Schoenfeld residuals and test the significance of the correlation of residuals with time, I've decided to incorporate a interaction in the model. ...
2
votes
0answers
48 views

Simulate censored data cox model

I would like to simulate interval-censored data in a Cox model. In the R package intcox I found the following code: ...
0
votes
1answer
43 views

Survival analyses for complicated models

I've just began looking into survival analyses, and I'm having some difficulty interpreting the results. I have a model linear regression model where time ~ x1 * x2 * x3... x9, this model seems to ...
1
vote
0answers
32 views

unique spline for different groups in a linear model (and no spline at all for one group)

I have a problem that has puzzled me for a long time. It involves linear models and spline functions. I need to model "time since diagnosis" when some individuals never had a diagnosis. I use Poisson ...
2
votes
1answer
53 views

Interval censoring

I ran an interval censor survival curve with R, JMP and SAS. They both gave me identical graphs, but the tables differed a bit. This is the table JMP gave me. ...
1
vote
1answer
143 views

p-value zero in hypothesis testing for survival curves

I have done survival analysis. I used Kaplan-Meir to do the survival analysis. Description of data: My data set is large and data table has close 120,000 records of survival information belong to 6 ...
0
votes
0answers
23 views

How to have a captured response table for a 2-year prediction base Cox model in R?

My study is about "Churn Risk Evaluation of College Students". I decided to use R software, already had a result for the survival probability of an old data (all the students already left or ...
1
vote
0answers
15 views

How to check out an appropriate survival model?

Maybe this question is too general, but I think it's worthy to post to clarify me some standard procedures in survival analysis. As we know, there are a list of method and models like parametric (exp, ...
1
vote
0answers
53 views

Is there an R function to do a survival analysis with right censoring + nested + crossed factors

I have this dataset to model, but I'm not sure how to do it. I want to model the surviving probability of different populations of two species depending on a treatment applied. Populations should ...
1
vote
1answer
55 views

Variance-covariance matrix of survival model

Suppose I have a survival model like this: ...
1
vote
0answers
45 views

How to predict cumulative hazard in survival analysis?

Suppose I have a survival model like this: ...
0
votes
0answers
251 views

Using a Decision Tree Algorithm such as C4.5 to understand population Partition

I have multivariate data about a certain population with more than 1000 attributes per exemplar. Some of the variables are basic demographics attributes including: gender, age, race, ethnicity, ...
0
votes
0answers
46 views

Time-scale in cox porportinal hazards model with multiple time-dependent variables

I'm doing survival analysis and I have three time-dependent variables, with different time scales each. I've already done univariate analysis and I want to proceed with multivariate analysis. My ...
0
votes
1answer
55 views

R Interpret coefficient from Survreg(dist=“gaussian”)

I was wondering if anyone could help me on how to interpret the coefficient from an analysis I have carried out in R (survival package). The data is right ...
0
votes
0answers
162 views

Predict probability of failure in R using survreg

I am fitting a weibull model as follows: s <- Surv(DFBR[,"Time"],DFBR[,"Censor"]) wei <- survreg(s~ Group+ UsefulLife, data = DFBR, dist="weibull") How ...
4
votes
1answer
98 views

How would you visualize the difference between Cox/Weibull regression?

I'm trying to figure a way of properly displaying the difference\resemblance between various regression values on the same data set, using cox ph, weibull regression and log-normal regression. ...
1
vote
0answers
182 views

Confidence interval for the restricted mean in survival analysis

What is the recommended way of calculating confidence intervals for the restricted mean in survival analysis? Here are some example data, taken from the paper Chris Barker (2009), The Mean, Median, ...
0
votes
0answers
24 views

Two-state model with transient states for panel data

I need to analyse unbalanced panel data where the variable of interest is a dummy with two non-absorbing states (i.e. switch from 0 to 1 and 1 to 0 is possible at any time period). The goal is to ...
1
vote
0answers
94 views

How to use Cox proportional hazards model in interval-censored data with time-dependent variables?

The question is self-explanatory. I have survival data (n=156) which, in about half of the observations, is right-censored or interval-censored. I'm am using R to do the analysis and I know I can use ...
0
votes
1answer
117 views

Survfit function for gbm cox model

I just fitted a boosted regression coxph model: cox=gbm(Surv(periods, event) ~ grade + fico_range_low + revol_util + dti, data=notes) However, I want to obtain ...
1
vote
1answer
197 views

How to calculate Prob > chi2 in R to test model fit of conditional logistic regression

I used the clogit function (from the survival package) to run a conditional logistic regression in R with a big dataset of 1:M matched pairs with n=300368964 and number of events= 39995. ...
2
votes
1answer
299 views

Why do coxph() and survreg(, dist=“exponential”) NOT return the same coefficient (except for expected opposite sign) in R?

If I understand correctly, the coefficient of a covariate X under a Weibull accelerated failure time (AFT) model is related to the ...
1
vote
0answers
133 views

How to use Turnbull's nonparametric estimator for interval-censored data in R

I am doing Survival Analysis with interval-censored data and I want to apply Turnbull's nonparametric estimator to the analysis of the covariates (suggested by Turnbull (1976)). I want to know if ...
2
votes
1answer
145 views

Comparison of CPH, accelerated failure time model or neural networks for survival analysis

I am new to survival analysis and I've recently learned that there are different ways to do it given a certain goal. I am interested in actual implementation and appropriateness of these methods. I ...
1
vote
1answer
241 views

how does Cox proportional hazards model deal with time-dependent variables

When considering time dependent data in survival analysis, you have multiple start-stop times for an individual subject with measurements for the covariates. If each season has a different size (for ...
1
vote
0answers
50 views

Decision to add all predictive variables in Kaplan-Meier and Cox PH

In R's survival and rms packages, Kaplan-Meier (Surv and ...