From a7777738cbc60672b2d493ca9181f879b6d66a23 Mon Sep 17 00:00:00 2001 From: Tom Palmer Date: Tue, 9 Dec 2025 16:35:18 +0000 Subject: [PATCH 1/4] Import and use load_data() function from data/__init__.py --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index be3a4fc..716ee96 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,9 @@ From the user side, this amounts to creating a dataclass, `SEQopts`, and then fe ```python import polars as pl from pySEQTarget import SEQuential, SEQopts +from pySEQTarget.data import load_data -data = pl.from_pandas(SEQdata) +data = load_data("SEQdata") options = SEQopts(km_curves = True) # Initiate the class From 7a312a87dc5271d1c2da2ec78d37967de8213dec Mon Sep 17 00:00:00 2001 From: Tom Palmer Date: Tue, 9 Dec 2025 16:35:40 +0000 Subject: [PATCH 2/4] Add treatment_col and outcome_col arguments --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 716ee96..a7c39b5 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ model = SEQuential(data, id_col = "ID", time_col = "time", eligible_col = "eligible", + treatment_col = "tx_init", + outcome_col = "outcome", time_varying_cols = ["N", "L", "P"], fixed_cols = ["sex"], method = "ITT", From c022ddc74992eab0908c4f5d79727076f6d46b7a Mon Sep 17 00:00:00 2001 From: Tom Palmer Date: Tue, 9 Dec 2025 16:35:51 +0000 Subject: [PATCH 3/4] Amend options to parameters --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7c39b5..a07d390 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ model = SEQuential(data, time_varying_cols = ["N", "L", "P"], fixed_cols = ["sex"], method = "ITT", - options = options) + parameters = options) model.expand() # Construct the nested structure model.bootstrap(bootstrap_nboot = 20) # Run 20 bootstrap samples model.fit() # Fit the model From 8e847787195e1cb196e52593ac341593951f144d Mon Sep 17 00:00:00 2001 From: Tom Palmer Date: Tue, 9 Dec 2025 16:36:46 +0000 Subject: [PATCH 4/4] Delete blank lines --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index a07d390..09181dd 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ model.fit() # Fit the model model.survival() # Create survival curves model.plot() # Create and show a plot of the survival curves model.collect() # Collection of important information - ``` ## Assumptions @@ -61,4 +60,3 @@ There are several key assumptions in this package - 1. User provided `time_col` begins at 0 per unique `id_col`, we also assume this column contains only integers and continues by 1 for every time step, e.g. (0, 1, 2, 3, 4, ...) is allowed and (0, 1, 2, 2.5, ...) or (0, 1, 4, 5) are not 1. Provided `time_col` entries may be out of order at intake as a sort is enforced at expansion. 2. `eligible_col` and elements of `excused_colnames` are once 1, only 1 (with respect to `time_col`) flag variables. -