Skip to content

Commit

Permalink
- devtools::check() pleasing
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcieko committed Oct 12, 2023
1 parent c375ffe commit ccd270b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/bootstrapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ getBootsrapBands <- function (
bnds = DoseFinding::defBnds(
mD = max(model_fits[[1]]$dose_levels))[[model]])

preds <- predict(fit, doseSeq = dose_seq, predType = "ls-means")
preds <- stats::predict(fit, doseSeq = dose_seq, predType = "ls-means")
attr(preds, "gAIC") <- DoseFinding::gAIC(fit)

return (preds)
Expand Down Expand Up @@ -74,7 +74,7 @@ getBootsrapBands <- function (
sort_indx <- order(rep(seq_along(model_names), length(dose_seq)))
quant_mat <- t(apply(X = preds[sort_indx, ],
MARGIN = 1,
FUN = quantile,
FUN = stats::quantile,
probs = quantile_probs))

cr_bounds_data <- cbind(
Expand Down
2 changes: 1 addition & 1 deletion R/posterior.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ getPosteriorI <- function(

if (is.null(mu_hat) && is.null(sd_hat)) {

anova_res <- lm(data_i$response ~ factor(data_i$dose) - 1)
anova_res <- stats::lm(data_i$response ~ factor(data_i$dose) - 1)
mu_hat <- summary(anova_res)$coefficients[, 1]
sd_hat <- summary(anova_res)$coefficients[, 2]

Expand Down

0 comments on commit ccd270b

Please sign in to comment.