SEQoutput

class pySEQTarget.SEQoutput

Collector class for results from SEQuential

Parameters:
  • options (SEQopts) – Options used in the SEQuential process

  • method (str) – Method of analysis [‘ITT’, ‘dose-response’, or ‘censoring’]

  • numerator_models (List[ResultsWrapper]) – Numerator models, if applicable, from the weighting process

  • denominator_models (List[ResultsWrapper]) – Denominator models, if applicable, from the weighting process

  • compevent_models (List[List[ResultsWrapper]]) – Competing event models, if applicable

  • weight_statistics (DataFrame) – Weight statistics once returned back to the expanded dataset

  • hazard (DataFrame) – Hazard ratio if applicable

  • km_data (DataFrame) – Dataframe of risk, survival, and incidence data if applicable at all followups

  • km_graph (Figure) – Figure of survival, risk, or incidence over followup times

  • risk_ratio (DataFrame) – Dataframe of risk ratios, compared between treatments and subgroups

  • risk_difference (DataFrame) – Dataframe of risk differences, compared between treatments and subgroups

  • time (dict) – Timings for every step of the process completed thus far

  • diagnostic_tables (dict) – Diagnostic tables for unique and nonunique outcome events and treatment switches

__init__(options=None, method=None, numerator_models=None, denominator_models=None, outcome_models=None, compevent_models=None, weight_statistics=None, hazard=None, km_data=None, km_graph=None, risk_ratio=None, risk_difference=None, time=None, diagnostic_tables=None)
plot()

Displays the Kaplan-Meier graph

Return type:

None

retrieve_data(type=typing.Optional[typing.Literal['km_data', 'hazard', 'risk_ratio', 'risk_difference', 'unique_outcomes', 'nonunique_outcomes', 'unique_followup', 'nonunique_followup', 'unique_compevent', 'nonunique_compevent', 'unique_switches', 'nonunique_switches']])

Getter for data stored within SEQoutput

Parameters:

type (str) – Data which you would like to access, [‘km_data’, ‘hazard’, ‘risk_ratio’, ‘risk_difference’, ‘unique_outcomes’, ‘nonunique_outcomes’, ‘unique_followup’, ‘nonunique_followup’, ‘unique_compevent’, ‘nonunique_compevent’, ‘unique_switches’, ‘nonunique_switches’]

Return type:

DataFrame

summary(type=typing.Optional[typing.Literal['numerator', 'denominator', 'outcome', 'compevent']])

Returns a list of model summaries of either the numerator, denominator, outcome, or competing event models

Parameters:

type (str) – Indicator for which model list you would like returned

Return type:

List

to_md(filename='SEQuential_results.md')

Generates a markdown report of the SEQuential analysis results.

Return type:

None

to_pdf(filename='SEQuential_results.pdf')

Generates a PDF report of the SEQuential analysis results.

Return type:

None