Skip to content

Commit

Permalink
variables scoping fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
halpo committed Oct 11, 2024
1 parent 2201d51 commit 130610d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/PCORI_within_group_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ fit_PCORI_within_group_model <- function(
compute_influence_terms(
left_join(
data_all_with_transforms,
followup_data |> select(..id.., ..time.., baseline_intensity),
by=join_by(..id.., ..time..)
followup_data |> select('..id..', '..time..', 'baseline_intensity'),
by=join_by('..id..', '..time..')
),
base = base,
alpha = a,
Expand Down
1 change: 1 addition & 0 deletions R/fit_PCORI_within_group_model_old.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fit_PCORI_within_group_model_old <- function(
model.frame(data=filter(group.data, (!!time.var) <= !!End), na.action = na.pass) |>
arrange(!!id.var, !!time.var)

visit.number <- NULL
model.data <- mf |>
group_by(!!id.var) |>
mutate(
Expand Down
2 changes: 1 addition & 1 deletion R/jackknife.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

globalVariables(c('alpha', add=TRUE))

cross_validate <- function(original.object, progress = interactive()){
data <- original.object$data
Expand Down

0 comments on commit 130610d

Please sign in to comment.