Skip to contents

A dataset containing patient responses, potentially to a treatment, along with a grouping variable for subgroup analysis.

Usage

data(data_subgroup)

Format

A data frame with 12 rows and 3 variables:

PatientID

Character. Unique identifier for each patient.

Response

Integer. The response value recorded for the patient.

Group

Character. The subgroup to which the patient belongs (e.g., "GroupA", "GroupB").

Examples

data(data_subgroup)
str(data_subgroup)
#> 'data.frame':	12 obs. of  3 variables:
#>  $ PatientID: chr  "PT1" "PT2" "PT3" "PT4" ...
#>  $ Response : int  -100 -60 -35 -20 -15 0 5 10 25 40 ...
#>  $ Group    : chr  "A" "A" "A" "A" ...
head(data_subgroup)
#>   PatientID Response Group
#> 1       PT1     -100     A
#> 2       PT2      -60     A
#> 3       PT3      -35     A
#> 4       PT4      -20     A
#> 5       PT5      -15     B
#> 6       PT6        0     B
table(data_subgroup$Group)
#> 
#> A B C 
#> 4 4 4 
summary(data_subgroup$Response)
#>     Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
#> -100.000  -23.750    2.500   -3.333   28.750   60.000