I want to calculate the minimum sample size for a prospective longitudinal study (using cox regression - the aim of the project is prediction). The following function pmsampsize from the pmsampsize package in R can be used for the calculation (based on the following publication; Minimum sample size for developing models with continuous, binary or survival (time to event) outcomes. Riley et al. (2018)). To run the following function, we need to enter the value of csrsquared, which is the value of the Cox-Snell Rsquared of the new model.
pmsampsize(type = "s", csrsquared = , parameters = , rate = ,timepoint = , meanfup = )
If there are no pilot data and also no reported value of pseudo-R2 in the similarly established studies, how can the value of csrsquared be defined to use this function for calculation? 2. How to estimate the value of the Cox-Snell R-squared, assuming that the value of the pseudo-R2 is available.
I have a binary time dependent covariate in the model and there are only 9 time points. So I don't think the above function can be used for sample size calculation when the cox model includes a time dependent covariate and discrete survival time. But still, I'm interested in knowing how the pseudo-R2 can be predicted when there is no pilot data, assuming we have continuous survival time and all covariates are time independent.
In my study the patients come to the hospital every two months for check-ups. T0 ( one week before surgery), T1 (two months after surgery), T2 (4 months after surgery) up to T9 (18 months after surgery). There is one binary time dependent covariate and one continuous independent variable. Cases who dropped out before the event, completed follow up (T9) event-free are censored.