Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about stan_surv function. #626

Open
vegetableAndy opened this issue Jun 8, 2024 · 0 comments
Open

Questions about stan_surv function. #626

vegetableAndy opened this issue Jun 8, 2024 · 0 comments

Comments

@vegetableAndy
Copy link

vegetableAndy commented Jun 8, 2024

Summary:

Questions about stan_surv function.

Description:

I want to utilize stan_surv to explore various variables' (including time-fixed covariate and time-varying covariate) impact on survival time. And the manual suggests give us examples of time-fixed covariate and time-varying covariate situations like this:
mod1 <- stan_surv(formula = Surv(recyrs, status) ~ group, data = bcancer, chains = CHAINS, cores = CORES, seed = SEED, iter = ITER)
and
mod_tvc <- stan_surv( formula = Surv(tstart, tstop, death) ~ log(bili) + log(protime), data = dat, chains = CHAINS, cores = CORES, seed = SEED, iter = ITER)
Time-fixed covariate and time-varying covariate are analyzed separately, and the model for time-varying covariates has a "start-stop" time structure.
Here I would like to ask that if I have time-fixed covariate and time-varying covariate at the same time, should I separate them? Moreover, the model for time-fixed covariate only contains one covariate, if I have a few covariates, should I separate them or put them together?
Looking forward to your answer and appreciate it!

@vegetableAndy vegetableAndy changed the title #### Surmmary: Questions about stan_surv function. Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant