Skip to content

Commit

Permalink
offset prameter debuged (hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
livio committed Apr 26, 2024
1 parent 42145c1 commit 572a387
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/utiliy_score_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ socket_compute_scores <- function(i,model,score_type){
# model$call$formula=update( model$call$formula,formula(paste("~.",paste("-",colnames(model[["x"]])[i],collapse=""))))
frml=as.formula(paste(yname,"~0+."))
model$call$formula=as.formula(paste(yname,"~0+."))
if(!is.null(model$offset)){
offs<-model$offset
model$call$formula=update( model$call$formula,formula(paste("~+offset(offs)")))
}
# if(!is.null(model$offset)){
# offs<-model$offset
# model$call$formula=update( model$call$formula,formula(paste("~+offset(offs)")))
# }
model$call$score_type=NULL
model$call$perms = NULL

Expand Down

0 comments on commit 572a387

Please sign in to comment.