Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 229981

Use this tag for any *on-topic* question that (a) involves `R` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `R`.

1 vote
1 answer
675 views

calibrate function from rms package not working for cox model with time-varying covariates?

I am using the calibrate function from the rms package but it returned an error message Error in reliability[, "index.corrected"] : subscript out of bounds. The validate function, however, did work. I …
cliu's user avatar
  • 211
0 votes
1 answer
138 views

Nonlinear effects of time-varying covariates from marginal rates model

This is a followup analysis on this post, inspired by the comments from @EdM. I fitted a marginal rates model (Lin, Wei, Yang, & Ying, 2002) on recurrent event data but don't know how to include and t …
cliu's user avatar
  • 211
2 votes
1 answer
193 views

Correct way to add both time-varying and time-invariant predictors in coxph()

I have time-varying and time-invariant predictors in my cox model. What will be the correct way to add both of them using coxph()? In my model, income, development, and gender are time invariant and g …
cliu's user avatar
  • 211
1 vote
1 answer
323 views

Understand robust se vs naive se from marginal means survival model [duplicate]

I ran a marginal means survival model that included some time-invariant and time-varying covariates (see this post for relevant information). I am trying to understand why the robust standard errors o …
cliu's user avatar
  • 211
1 vote
0 answers
203 views

Interpretation of confidence interval using geom_smooth in ggplot2

I plotted data from two groups using geom_smooth in ggplot2. The default method loess was used for the lines and confidence interval was also added. Am I right by assuming if the lines and confidence …
cliu's user avatar
  • 211