Closed stueller closed 3 years ago
# slope only models if( any(unlist(lapply(userFormula, function(x) !is.null(x)))) ) { isnnform <- function(x) { if( !is.null(x) ) { return( is.formula(x) ) } else return(FALSE) } if( isnnform(e$userFormula$fixed) ) t0$fixed <- userFormula$fixed if( isnnform(e$userFormula$random) ) t0$random <- userFormula$random if( isnnform(e$userFormula$formula) ) t0$formula <- userFormula$formula }
implemented as Palytic$set("public", "applyUserFormula",...
Palytic$set("public", "applyUserFormula",...
allow for formula override so that we can test intercept only and