survival-analysis Questions

4

Solved

I'm attempting to model customer lifetimes on subscriptions. As the data is censored I'll be using R's survival package to create a survival curve. The original subscriptions dataset looks like th...
Shiver asked 23/9, 2013 at 11:56

3

I have a Cox proportional hazards model set up using the following code in R that predicts mortality. Covariates A, B and C are added simply to avoid confounding (i.e. age, sex, race) but we are re...
Idioblast asked 18/8, 2015 at 15:15

1

Solved

Currently my forest plots for subgroup analysis (not for meta-analysis) in R are like the following... library("dplyr") library(ggplot2) library(survminer) library(survival) library(fores...
Salmanazar asked 1/12, 2021 at 16:18

1

I'm new to using pymc3, I've read Bayesian Methods for Hackers and done my best to work through existing survival analysis tutorials in pymc3. However, I don't understand how to write/interpret the...
Insatiable asked 24/10, 2021 at 21:29

3

Solved

I'm using the survival library. After computing the Kaplan-Meier estimator of a survival function: km = survfit(Surv(time, flag) ~ 1) I know how to compute percentiles: quantile(km, probs = c(0...
Chlamys asked 2/4, 2017 at 20:10

1

I'm trying to build a survival model in JAGS that allows for time-varying covariates. I'd like it to be a parametric model — for example, assuming survival follows the Weibull distribution (but I'd...
Voight asked 20/4, 2016 at 4:8

4

I'm trying to build a neural net with the neuralnet package and I'm having some trouble with it. I've been successful with the nnet package but no luck with the neuralnet one. I have read the whole...

2

Solved

I'm attempting to use the "rpart" package in R to build a survival tree, and I'm hoping to use this tree to then make predictions for other observations. I know there have been a lot of SO questio...
Resemblance asked 8/6, 2015 at 2:48

3

Solved

I'm new to R and survival analysis, and I am interested to export into a dataframe the results from survfit where there is strata. This site has provided an excellent solution but not to one with...
Mcmasters asked 3/7, 2015 at 4:38

1

I am using the R programming language. I am trying to follow this tutorial :https://rdrr.io/cran/randomForestSRC/man/plot.competing.risk.rfsrc.html This tutorial shows how to use the "survival...
Onitaonlooker asked 18/3, 2021 at 3:22

3

I'm using R's coxph function to fit a survival regression model, and I'm trying to model time dependent covariates (see this vignette). When fitting the model, I get the following error: Error in ...
Cresol asked 28/10, 2017 at 9:56

1

Solved

library(survival) library(survminer) I am using the survminer package to plot unadjusted Kaplan Meier plots. I am calculating mortality comparing different exposures and I have a very specific pro...
Neighborly asked 1/1, 2021 at 17:23

1

Solved

I am trying to run survival analysis in python (pycharm) in linux, here is a part of the code import numpy as np import matplotlib.pyplot as plt #matplotlib inline import pandas as pd from sklearn...
Whaley asked 25/10, 2020 at 1:17

1

Solved

I am trying to customize a plot for competing risks using R and the package cmprsk. Specifically, I want to overwrite the default that for competing events colors are used and for different groups ...
Inebriate asked 3/10, 2020 at 16:35

2

I'm currently having an issue with blank plots appearing in rmarkdown chunk outputs for survminer. Please see image below. It makes output difficult as it includes a huge empty space while tryi...
Judo asked 27/2, 2017 at 6:25

3

Solved

I am using R survival package, survdiff function. I wonder how to get the p value from the return value. > diff = survdiff(Surv(Time, Censored) ~ Treatment+Gender, data = dat) > diff Cal...
Perdu asked 2/4, 2016 at 2:56

5

I’m trying to fit and plot a Weibull model to a survival data. The data has just one covariate, cohort, which runs from 2006 to 2010. So, any ideas on what to add to the two lines of code that foll...
Curbstone asked 5/2, 2012 at 18:2

1

Solved

Hi I'm using the lifelines package to do Cox regression. I want to examine the effects of a categorical variable which is non-binary. Is there a built-in way of doing this? Or should I transform ea...
Sinuation asked 7/2, 2020 at 13:53

1

when applying ggforest() to a coxph object I get the follwoing error message error in ggforest(res.cox3, data = Selection_cox) : class(model) == "coxph" are not all TRUE res.cox3is the output of...
Zashin asked 23/1, 2020 at 21:43

2

Solved

I have a following survival data library(survival) data(pbc) #model to be plotted and analyzed, convert time to years fit <- survfit(Surv(time/365.25, status) ~ edema, data = pbc) #visualize ...
Extine asked 9/6, 2016 at 0:6

2

I'm re-running Kaplan-Meier Survival Curves from previously published data, using the exact data set used in the publication (Charpentier et al. 2008 - Inbreeding depression in ring-tailed lemurs (...
Felicitasfelicitate asked 2/4, 2014 at 19:54

1

Running a survival analysis, assume the p-value regarding a variable is statistically significant - let's say with a positive association with the outcome. However, according to the Schoenfeld resi...
Braden asked 7/2, 2018 at 17:12

1

Solved

ggadjustedcurves error: Must use a vector in '[', not an object of class matrix I call rlang::last_trace() and get this: > rlang::last_error() <error> message: Must use a vector in `[`, ...
Sender asked 20/3, 2019 at 22:16

3

I'm trying to make a simple shiny ap for creating kaplan-meier survival curves that are stratified by selection the user makes. When I code the KM calculation statically (with the column name thorT...
Coleville asked 6/1, 2019 at 4:58

3

I have a survfit object. A summary survfit for my t=0:50 years of interest is easy enough. summary(survfit, t=0:50) It gives the survival at each t. Is there a way to get the hazard for each t ...
Weddle asked 19/4, 2015 at 10:47

© 2022 - 2024 — McMap. All rights reserved.