Generate Data for a BaselineObject
generate-BaselineObject-method.Rd
Generate Data for a BaselineObject
Usage
# S4 method for BaselineObject
generate(x, ...)
Arguments
- x
a
BaselineObject
object created by create_baseline_object- ...
additional parameters are ignored
Value
A BaselineDataFrame object
Examples
bl_biomarkers <- create_baseline_object(
n_trt_int = 100,
n_ctrl_int = 50,
n_ctrl_ext = 100,
covariates = baseline_covariates(
c("b1", "b2", "b3"),
means_int = c(0, 0, 0),
covariance_int = covariance_matrix(c(1, 1, 1), c(.8, .3, .8))
),
transformations = list(
exp_b1 = function(data) exp(data$b1),
b2 = binary_cutoff("b2", int_cutoff = 0.7, ext_cutoff = 0.5)
)
)
generate(bl_biomarkers)
#> patid ext trt b1 b2 b3 exp_b1
#> 1 1 0 1 1.18348006 1 0.842758861 3.26571936
#> 2 2 0 1 -1.48562023 0 -0.882255605 0.22636190
#> 3 3 0 1 -0.82501550 0 -1.361835470 0.43822820
#> 4 4 0 1 1.41137255 1 0.736832163 4.10158117
#> 5 5 0 1 0.10966753 0 -1.779718611 1.11590700
#> 6 6 0 1 0.67941408 1 0.896552659 1.97272154
#> 7 7 0 1 -0.37516964 0 -0.665703108 0.68717269
#> 8 8 0 1 0.71361010 1 0.325470575 2.04134745
#> 9 9 0 1 0.38824449 1 1.971908386 1.47439021
#> 10 10 0 1 -0.92764264 0 -0.077222819 0.39548491
#> 11 11 0 1 -1.94095635 0 0.772189620 0.14356658
#> 12 12 0 1 0.38544988 0 -0.660835390 1.47027562
#> 13 13 0 1 -0.51090804 0 -0.093379657 0.59995055
#> 14 14 0 1 0.16794573 0 -0.829916487 1.18287241
#> 15 15 0 1 1.61633820 1 0.918816645 5.03462074
#> 16 16 0 1 -1.99290566 0 -1.008479052 0.13629881
#> 17 17 0 1 -0.69864698 0 -1.023374372 0.49725765
#> 18 18 0 1 0.87137480 0 -0.252165455 2.39019463
#> 19 19 0 1 -0.19699512 0 -0.625157954 0.82119464
#> 20 20 0 1 1.16303136 1 0.152521145 3.19961780
#> 21 21 0 1 1.03925631 1 0.426085167 2.82711374
#> 22 22 0 1 0.42123266 0 -0.625745966 1.52383877
#> 23 23 0 1 0.01620572 0 -0.042564308 1.01633774
#> 24 24 0 1 1.15844518 1 -0.204787954 3.18497736
#> 25 25 0 1 0.53566210 1 1.675777807 1.70857912
#> 26 26 0 1 -1.21332845 0 -1.379158574 0.29720639
#> 27 27 0 1 1.02883917 1 -0.064492939 2.79781617
#> 28 28 0 1 1.34512853 1 0.375778132 3.83867989
#> 29 29 0 1 0.29879113 0 0.370252213 1.34822800
#> 30 30 0 1 0.27591399 0 -1.277176060 1.31773452
#> 31 31 0 1 -0.20864273 0 0.417841049 0.81168518
#> 32 32 0 1 -0.44764894 0 0.867069550 0.63912902
#> 33 33 0 1 0.05581673 0 0.175241980 1.05740388
#> 34 34 0 1 -1.39837491 0 -1.963708762 0.24699803
#> 35 35 0 1 1.04006517 0 -0.049754744 2.82940140
#> 36 36 0 1 -0.25839239 0 -0.397037457 0.77229213
#> 37 37 0 1 1.41793147 1 -0.457873377 4.12857151
#> 38 38 0 1 1.90153265 1 0.320864421 6.69614946
#> 39 39 0 1 0.68107374 0 -1.054946690 1.97599830
#> 40 40 0 1 -0.55879148 0 0.715204224 0.57189980
#> 41 41 0 1 1.05426083 1 0.362421994 2.86985307
#> 42 42 0 1 -2.39278340 0 -0.810650354 0.09137500
#> 43 43 0 1 -1.24912064 0 -1.643741132 0.28675685
#> 44 44 0 1 0.29057370 0 -1.550023761 1.33719442
#> 45 45 0 1 0.82606915 1 1.457199336 2.28432175
#> 46 46 0 1 -0.66637735 0 -0.364791932 0.51356568
#> 47 47 0 1 0.97801992 1 2.296124902 2.65918563
#> 48 48 0 1 0.05817429 0 -0.229710210 1.05989971
#> 49 49 0 1 1.03168241 1 0.833371915 2.80578235
#> 50 50 0 1 -0.19839478 0 -0.092624747 0.82004605
#> 51 51 0 1 -0.42814083 0 -0.043723688 0.65171963
#> 52 52 0 1 -1.76774589 0 -1.087921209 0.17071737
#> 53 53 0 1 1.46515099 1 0.139153030 4.32819670
#> 54 54 0 1 -3.27409214 0 0.325412005 0.03785122
#> 55 55 0 1 -1.58141224 0 -0.273670375 0.20568442
#> 56 56 0 1 -0.65993088 0 -0.797043450 0.51688706
#> 57 57 0 1 -1.13217019 0 -2.092795071 0.32233297
#> 58 58 0 1 -0.96704142 0 -1.732866857 0.38020624
#> 59 59 0 1 1.45725406 1 1.126944997 4.29415182
#> 60 60 0 1 -1.42701750 0 -2.762307756 0.24002373
#> 61 61 0 1 -0.05784196 0 -0.010795696 0.94379910
#> 62 62 0 1 2.22775938 1 -0.018216972 9.27905196
#> 63 63 0 1 -0.61793743 0 -1.300927468 0.53905513
#> 64 64 0 1 -1.73382292 0 0.160605807 0.17660796
#> 65 65 0 1 0.98110001 1 0.443962074 2.66738879
#> 66 66 0 1 -0.71618074 0 -1.627430748 0.48861484
#> 67 67 0 1 0.99875599 0 -1.128215555 2.71490236
#> 68 68 0 1 0.60108723 1 0.999990673 1.82410094
#> 69 69 0 1 0.90128128 1 0.392404675 2.46275656
#> 70 70 0 1 0.46842405 0 -0.183094020 1.59747467
#> 71 71 0 1 1.95066244 1 0.904233811 7.03334522
#> 72 72 0 1 -0.58245292 0 -1.227981136 0.55852666
#> 73 73 0 1 0.79482415 1 1.654893368 2.21405162
#> 74 74 0 1 1.68780023 1 1.074240705 5.40757218
#> 75 75 0 1 0.86645667 0 -0.052193074 2.37846820
#> 76 76 0 1 0.37585630 0 -0.473809984 1.45623785
#> 77 77 0 1 0.67950866 0 -0.263468712 1.97290812
#> 78 78 0 1 2.51183712 1 1.590578182 12.32755646
#> 79 79 0 1 2.22401257 1 0.946474322 9.24435012
#> 80 80 0 1 0.91644163 1 0.662493000 2.50037727
#> 81 81 0 1 0.28969596 0 0.269770193 1.33602122
#> 82 82 0 1 -0.71412436 0 -0.323512109 0.48962065
#> 83 83 0 1 -0.47654959 0 0.110661901 0.62092214
#> 84 84 0 1 -1.44293856 0 -0.039564403 0.23623255
#> 85 85 0 1 -0.83104408 0 -1.407987521 0.43559425
#> 86 86 0 1 0.64733007 0 -0.366946046 1.91043329
#> 87 87 0 1 0.10545529 1 0.885414702 1.11121643
#> 88 88 0 1 -0.70127723 0 -1.956015028 0.49595146
#> 89 89 0 1 -1.33631840 0 -1.257827672 0.26281146
#> 90 90 0 1 1.76233758 1 0.265802689 5.82604031
#> 91 91 0 1 2.15848385 1 0.995879512 8.65800085
#> 92 92 0 1 -0.09106516 0 -0.160198579 0.91295822
#> 93 93 0 1 0.73979166 1 0.745875036 2.09549889
#> 94 94 0 1 0.20079954 0 -0.258947178 1.22237971
#> 95 95 0 1 -0.80732352 0 -0.413390661 0.44605031
#> 96 96 0 1 2.60815015 1 -0.465441918 13.57391784
#> 97 97 0 1 -0.78810939 0 -1.167561299 0.45470365
#> 98 98 0 1 0.22146934 0 0.287882858 1.24790898
#> 99 99 0 1 -0.51676652 0 0.547572954 0.59644603
#> 100 100 0 1 0.84182553 1 0.714841560 2.32059943
#> 101 101 0 0 2.16140475 1 0.475572998 8.68332701
#> 102 102 0 0 -0.79813208 0 0.381267173 0.45016906
#> 103 103 0 0 -0.78826895 0 -1.749150291 0.45463110
#> 104 104 0 0 2.16695573 1 -0.638112451 8.73166199
#> 105 105 0 0 0.46374448 1 0.817026003 1.59001664
#> 106 106 0 0 0.28344343 1 0.803866270 1.32769377
#> 107 107 0 0 -0.47604605 0 -0.830919515 0.62123487
#> 108 108 0 0 -0.87745354 0 0.874972979 0.41584049
#> 109 109 0 0 0.15446170 1 1.886559119 1.16702958
#> 110 110 0 0 0.28443394 0 -0.130294856 1.32900952
#> 111 111 0 0 0.09229236 0 0.409514955 1.09668540
#> 112 112 0 0 -1.66050666 0 0.874972876 0.19004267
#> 113 113 0 0 -0.33326040 0 -1.684885576 0.71658357
#> 114 114 0 0 -0.55760497 0 0.467775096 0.57257877
#> 115 115 0 0 0.46600407 0 0.250943310 1.59361349
#> 116 116 0 0 -0.61725084 0 0.491414888 0.53942537
#> 117 117 0 0 0.21457539 0 0.009452561 1.23933555
#> 118 118 0 0 -1.79236449 0 -1.044580812 0.16656586
#> 119 119 0 0 -1.66502353 0 -0.936839280 0.18918621
#> 120 120 0 0 1.05398424 1 0.092376633 2.86905940
#> 121 121 0 0 -1.71336383 0 0.731362243 0.18025841
#> 122 122 0 0 -0.07821850 0 -1.201436610 0.92476235
#> 123 123 0 0 0.71651726 0 -0.104167477 2.04729059
#> 124 124 0 0 0.12841606 1 0.934366351 1.13702598
#> 125 125 0 0 1.23821135 0 -0.636644139 3.44943809
#> 126 126 0 0 0.83350590 1 0.067835214 2.30137300
#> 127 127 0 0 -0.44433285 0 -0.808945753 0.64125194
#> 128 128 0 0 0.05045250 0 0.684612887 1.05174690
#> 129 129 0 0 0.71176971 1 0.660403892 2.03759402
#> 130 130 0 0 0.25665480 0 -0.193105919 1.29259884
#> 131 131 0 0 0.69949439 0 0.080355550 2.01273479
#> 132 132 0 0 0.28388480 0 -1.453186559 1.32827990
#> 133 133 0 0 -1.30537791 0 -1.673559006 0.27107008
#> 134 134 0 0 0.02658496 1 2.448444071 1.02694149
#> 135 135 0 0 -0.26425809 0 -0.426529535 0.76777536
#> 136 136 0 0 -1.05843468 0 -0.105306873 0.34699855
#> 137 137 0 0 -0.33953010 0 -0.582139750 0.71210486
#> 138 138 0 0 -2.03631311 0 -0.534965475 0.13050900
#> 139 139 0 0 -1.19996422 0 0.639331402 0.30120499
#> 140 140 0 0 0.83012950 0 -0.576278217 2.29361575
#> 141 141 0 0 -0.57731516 0 0.085879313 0.56140362
#> 142 142 0 0 0.47472825 1 1.133283749 1.60757728
#> 143 143 0 0 -1.60741278 0 -0.788621161 0.20040544
#> 144 144 0 0 1.05853087 1 2.038714910 2.88213364
#> 145 145 0 0 -1.08870027 0 -0.563352966 0.33665377
#> 146 146 0 0 -0.08171896 0 0.446410260 0.92153091
#> 147 147 0 0 0.93852301 1 0.928052060 2.55620314
#> 148 148 0 0 0.73365478 0 -0.121366204 2.08267844
#> 149 149 0 0 -0.39026084 0 -0.700016509 0.67688029
#> 150 150 0 0 -0.03351350 1 1.478180867 0.96704185
#> 151 151 1 0 0.73298772 1 0.054274829 2.08128963
#> 152 152 1 0 -0.34964726 0 0.244922898 0.70493671
#> 153 153 1 0 0.75546234 1 0.516033407 2.12859543
#> 154 154 1 0 0.28800047 1 0.681817034 1.33375793
#> 155 155 1 0 -0.19323721 1 0.243012531 0.82428642
#> 156 156 1 0 -0.03761678 0 -1.193611262 0.96308194
#> 157 157 1 0 0.04766468 0 -1.568692728 1.04881891
#> 158 158 1 0 -0.32020885 0 -0.256493494 0.72599740
#> 159 159 1 0 1.93595949 1 2.324549986 6.93069081
#> 160 160 1 0 0.72951713 1 1.219029605 2.07407885
#> 161 161 1 0 -1.13241843 0 0.155623051 0.32225297
#> 162 162 1 0 -0.86787132 0 0.499531022 0.41984431
#> 163 163 1 0 3.58098444 1 0.902796880 35.90887350
#> 164 164 1 0 0.72341977 1 0.474281623 2.06147093
#> 165 165 1 0 2.60023123 1 1.138740487 13.46685160
#> 166 166 1 0 0.44837187 1 -0.469757699 1.56576084
#> 167 167 1 0 -1.42575248 0 -0.283799856 0.24032755
#> 168 168 1 0 -0.06196518 0 -1.422616041 0.93991562
#> 169 169 1 0 0.46319452 1 -0.031131387 1.58914243
#> 170 170 1 0 -0.33157476 0 -0.285553049 0.71779249
#> 171 171 1 0 0.69031081 1 -0.734983857 1.99433529
#> 172 172 1 0 0.88457503 1 -0.191222135 2.42195492
#> 173 173 1 0 1.98552867 1 0.377177128 7.28289662
#> 174 174 1 0 0.06437820 0 -0.795247691 1.06649567
#> 175 175 1 0 0.26898431 1 0.268058908 1.30863461
#> 176 176 1 0 -1.69913664 1 2.620762453 0.18284131
#> 177 177 1 0 -0.82836163 0 0.410676495 0.43676428
#> 178 178 1 0 -1.46277585 0 -0.957053279 0.23159252
#> 179 179 1 0 1.12876046 0 -1.922654948 3.09182168
#> 180 180 1 0 0.44715021 1 0.085675644 1.56384919
#> 181 181 1 0 -0.91664301 0 -1.758764197 0.39985911
#> 182 182 1 0 -1.30517228 0 -0.260040553 0.27112582
#> 183 183 1 0 -1.37591849 0 -2.194907238 0.25260747
#> 184 184 1 0 0.41510178 1 -0.229795018 1.51452488
#> 185 185 1 0 -1.70798119 0 -0.962902875 0.18123129
#> 186 186 1 0 -1.21925646 0 0.508736343 0.29544976
#> 187 187 1 0 -0.84086126 0 -0.249024003 0.43133887
#> 188 188 1 0 0.36996593 1 2.055281107 1.44768530
#> 189 189 1 0 0.34158992 1 -0.023442211 1.40718312
#> 190 190 1 0 0.08131685 1 0.342874147 1.08471453
#> 191 191 1 0 -0.16018572 1 0.837926940 0.85198554
#> 192 192 1 0 -0.27281795 0 -0.012571384 0.76123136
#> 193 193 1 0 -0.04163481 1 0.904530095 0.95922002
#> 194 194 1 0 -0.11420658 0 -0.263110247 0.89207365
#> 195 195 1 0 -0.04926349 0 -0.784540833 0.95193027
#> 196 196 1 0 0.24871568 1 0.632843827 1.28237738
#> 197 197 1 0 -1.36942815 0 -0.556862897 0.25425231
#> 198 198 1 0 -1.61994674 0 -0.820582656 0.19790924
#> 199 199 1 0 -0.24281572 1 1.267337405 0.78441605
#> 200 200 1 0 -1.48052240 0 -0.220104019 0.22751880
#> 201 201 1 0 -1.87298427 0 -0.339546868 0.15366440
#> 202 202 1 0 -0.62447304 1 2.107476200 0.53554357
#> 203 203 1 0 0.31807089 1 0.875687126 1.37447370
#> 204 204 1 0 0.23519079 1 1.074310041 1.26515013
#> 205 205 1 0 0.70969285 1 -0.399665135 2.03336661
#> 206 206 1 0 1.01287679 1 -0.021058405 2.75351090
#> 207 207 1 0 -0.08246903 1 1.034541227 0.92083996
#> 208 208 1 0 -1.20359504 0 -0.324746516 0.30011335
#> 209 209 1 0 1.28519474 1 0.185543315 3.61537196
#> 210 210 1 0 -1.18050820 0 -1.652875849 0.30712262
#> 211 211 1 0 -1.31063323 0 -1.850318557 0.26964925
#> 212 212 1 0 -0.18883959 0 -0.023884120 0.82791930
#> 213 213 1 0 -1.41440135 0 -1.338224950 0.24307109
#> 214 214 1 0 -0.20965992 0 -0.552316004 0.81085996
#> 215 215 1 0 -1.48687428 0 -0.623078306 0.22607821
#> 216 216 1 0 0.64672416 1 0.972467914 1.90927608
#> 217 217 1 0 -0.09892412 0 0.293600404 0.90581144
#> 218 218 1 0 0.40943650 1 0.535242368 1.50596893
#> 219 219 1 0 -1.69647462 0 0.757355952 0.18332869
#> 220 220 1 0 1.23980929 1 0.533377309 3.45495452
#> 221 221 1 0 -0.09515340 1 0.355291940 0.90923345
#> 222 222 1 0 0.02500435 1 0.575813016 1.02531958
#> 223 223 1 0 -0.77121830 1 1.185615957 0.46244932
#> 224 224 1 0 -0.74202146 0 -0.196196322 0.47615042
#> 225 225 1 0 -0.75121444 0 0.332114705 0.47179324
#> 226 226 1 0 -2.72057858 0 0.478079187 0.06583665
#> 227 227 1 0 -0.42742473 1 0.989370695 0.65218649
#> 228 228 1 0 1.45520802 1 1.491496900 4.28537480
#> 229 229 1 0 -0.63634067 0 -0.270951614 0.52922550
#> 230 230 1 0 1.06336913 1 0.586326572 2.89611195
#> 231 231 1 0 0.83657726 1 0.226729648 2.30845220
#> 232 232 1 0 -0.19557633 1 0.584014048 0.82236057
#> 233 233 1 0 2.66097622 1 0.986205307 14.31025229
#> 234 234 1 0 1.72350531 1 -0.948335070 5.60413831
#> 235 235 1 0 -1.04477884 0 0.076176110 0.35176961
#> 236 236 1 0 1.18995203 1 1.221310472 3.28692354
#> 237 237 1 0 0.70147864 1 0.665957249 2.01673253
#> 238 238 1 0 1.77949233 1 0.860557942 5.92684674
#> 239 239 1 0 0.61677154 1 -0.210399822 1.85293624
#> 240 240 1 0 -0.30554874 0 -0.910293080 0.73671899
#> 241 241 1 0 -0.77475902 0 -0.391951187 0.46081481
#> 242 242 1 0 2.31600495 1 1.289923427 10.13510310
#> 243 243 1 0 0.79322956 0 -0.799195882 2.21052394
#> 244 244 1 0 -0.47715603 0 0.387732613 0.62054570
#> 245 245 1 0 -0.21103919 0 -0.698515320 0.80974233
#> 246 246 1 0 0.76330815 1 2.337327807 2.14536167
#> 247 247 1 0 -0.96911482 1 1.220422634 0.37941874
#> 248 248 1 0 0.04647454 0 -0.963832355 1.04757141
#> 249 249 1 0 0.95635901 1 2.108678200 2.60220460
#> 250 250 1 0 -1.28441408 0 -0.435010429 0.27681273