summarise_analysis: Summarise analyses of simulations of time-to-event data using...

Description Usage Arguments Value Author(s) Examples

View source: R/simulation_functions.R

Description

Function for summarising the analyses of simulated time-to-event trial data produced by analyse_sim().
Automatically reads in format from analyse_sim(); no other input format is supported.
It automatically detects types of analysis performed and provides relevant summaries (log-rank, Cox, RMST, landmark).

Usage

1
summarise_analysis(analysed_results, alpha1 = 0.025)

Arguments

analysed_results

Output file from analyse_sim(). Only analyse_sim() output is supported.

alpha1

1-sided alpha to be used for analysis. Default=0.025.

Value

Returns a table with one row. Table contains the following columns:

Author(s)

James Bell

Examples

1
2
3
4
5
6
7
8
example_sim <- simulate_trials(active_ecurve=Weibull(250,0.8),control_ecurve=Weibull(100,1),
rcurve=LinearR(12,100,100), assess=40, iterations=5,seed=12345,detailed_output=TRUE)

example_analysis1 <- analyse_sim(example_sim)
example_analysis2 <- analyse_sim(data=example_sim,RMST=30,landmark=30)

example_summary1 <- summarise_analysis(example_analysis1)
example_summary2 <- summarise_analysis(example_analysis2)

gestate documentation built on Feb. 20, 2020, 5:08 p.m.