Closed macartan closed 6 years ago
Looks to me as though we need to add a line similar to these, but pertaining to sd_i
:
if (!"outcome_sds" %in% fixed) outcome_sds_ <- sapply(1:m_arms, function(i) expr(outcome_sds[!!i]))
if (!"outcome_means" %in% fixed) outcome_means_ <- sapply(1:m_arms, function(i) expr(outcome_means[!!i]))
if (!"N" %in% fixed) N_ <- expr(N)
Might be worth thinking about a test for designers with "fixed" arguments to make sure all arguments are included.
Thanks for catching! Markus just brought up this issue. Editing now, will also look into @jaspercooper's suggestion.
This is a problem: N is being substituted in; but sd_i is being removed from args list but is not substituted in for sd_i