Skip to content

Slight changes to the plot? #4

@giabaio

Description

@giabaio

Hi @n8thangreen and @Zhaojingche. A few comments/ideas from me:

  1. I've pushed a new version in which I've included a weightplot function (to, well... plot the resulting weight function from a blendR object. To do that, I've slightly modified the output of blendsurv to return the weights and other helpful things... We may stipulate to store these extra bits into a misc object inside the main output?).

  2. I also think we could improve slightly the appearance of the plot function --- how about adding this?

theme_bw() + theme(legend.position=c(.9,.85),legend.background = element_rect(fill='transparent'))

I think the resulting picture would like a bit nicer...

  1. @n8thangreen: why do you need to create specialised copies of make.surv? Can't survHE take care directly of what you need it to do?

  2. Could survHE::summary.survHE be used on the blendR object to compute the mean survival time? To do so, you need to format the blendR object in a way that survHE understands directly --- and I'm not sure you want to do that, because it may mess up with other things...

  3. Like I said this morning, I would probably try and find ways to summarise the results of the blending process... Maybe looking at the hazard or density functions for the resulting blended curve may be a good idea. Maybe also add another parameter alpha_1 <- 0.02 and use that to plot the ribbon around the short/long term extrapolations so that the blended part is easier to visualise?

  4. Under Rstudio can we use the manipulate package to create a semi-live version of the process that chooses the weights and how that impact the blending?

OK --- this is it from me, for now... Do these make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions