Skip to content

Commit f4c872c

Browse files
committed
minor update
1 parent dd82749 commit f4c872c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

R/gs_update_ahr.R

+7-7
Original file line numberDiff line numberDiff line change
@@ -323,37 +323,37 @@ gs_update_ahr <- function(
323323
analysis = 1:n_analysis,
324324
time = x$analysis$time,
325325
n = x$analysis$n,
326-
event = if (is.null(observed_data) && is.null(event_tbl)) {
326+
event = if (is.null(event_tbl)) {
327327
x$analysis$event
328328
} else {
329329
observed_event
330330
},
331-
ahr = if (is.null(observed_data) && is.null(event_tbl)) {
331+
ahr = if (is.null(event_tbl)) {
332332
x$analysis$ahr
333333
} else {
334334
exp(-blinded_est$theta)
335335
},
336-
theta = if (is.null(observed_data) && is.null(event_tbl)) {
336+
theta = if (is.null(event_tbl)) {
337337
x$analysis$theta
338338
} else {
339339
blinded_est$theta
340340
},
341-
info = if (is.null(observed_data) && is.null(event_tbl)) {
341+
info = if (is.null(event_tbl)) {
342342
x$analysis$info
343343
} else {
344344
blinded_est$info0
345345
},
346-
info0 = if (is.null(observed_data) && is.null(event_tbl)) {
346+
info0 = if (is.null(event_tbl)) {
347347
x$analysis$info0
348348
} else {
349349
blinded_est$info0
350350
},
351-
info_frac = if (is.null(observed_data) && is.null(event_tbl)) {
351+
info_frac = if (is.null(event_tbl)) {
352352
x$analysis$info_frac
353353
} else {
354354
upar_update$timing
355355
},
356-
info_frac0 = if (is.null(observed_data) && is.null(event_tbl)) {
356+
info_frac0 = if (is.null(event_tbl)) {
357357
x$analysis$info_frac0
358358
} else {
359359
observed_event / max(observed_event)

0 commit comments

Comments
 (0)