tests/testthat/_snaps/simulate_data.md

DataSimObject show works as expected

Code
  show(object)
Output
  DataSimObject
  -------------
  Baseline object:
  Baseline Data Simulation Object
    N internal treated:  100 
    N internal control:  50 
    N external control:  100

  Covariates: 
  [[1]]
   covariate means_internal means_external
         age             59             60
       score              5              5

  Covariance Matrices
  Internal          External
        age score         age score 
  age     5     0   age   5.0   0.1 
  score   0     1   score 0.1   1.2

  Transformations: 
     score_high

  Event distribution:
  exponential distribution with lambda = 0.02

  Treatment HR:  1 
  Drift HR:  1

  Coefficients:
         age score_high 
      0.0005     1.1000

  Enrollment:
   Internal: Enrolling patients per time at rates: 25, 25, 25, 25, 10, 10, 10, 10, 10, 10, 10, 10.... 
   External: Enrolling patients per time at rates: 30, 30, 30, 30, 10, 10, 10, 10, 10, 10, 10, 10....

  Dropout:
   Internal treated: weibull distribution with lambda = 0.02 and gamma = 1.2 
   Internal control: exponential distribution with lambda = 0.0181818181818182 
   External control: exponential distribution with lambda = 0.025

  Clinical cut off:
   Internal: Cut off after 80 events 
   External: Cut off after first enrolled patient reaches time = 65


Try the psborrow2 package in your browser

Any scripts or data that you put into this service are public.

psborrow2 documentation built on April 4, 2025, 12:37 a.m.