OLS_modeling: functions related to modeling

OLS_modelingR Documentation

functions related to modeling

Description

<Delete and Replace>

Usage

reg_model(
  dat_yx,
  reg_obj,
  rank = 1,
  rank_by = c("bic", "rsq", "rss", "adjr2", "cp"),
  debug = FALSE,
  ...
)

lm_boot(model, y = NA, data = NA, n_boot = 50)

many_boots(model, n_range, r_boots = 10, n_clus = 1, lm_boot, ...)

reg_multi(
  y_vars,
  data,
  form_y = c("y~.", "y~.*."),
  n_v_max = 3,
  n_best = 1,
  really_big = FALSE,
  n_clus = 1,
  ...
)

mod_multi(reg_multi_obj, data, ...)

pred_multi(
  mods,
  data,
  dat0,
  id_col,
  n_clus = 1,
  clus = NA,
  out_dir = NULL,
  se_fit = TRUE,
  return = FALSE,
  fix_outliers = T,
  outlier_fun = function(y0, yhat, yhat_se) {     large = yhat > max(y0) * 1.5    
    small = yhat < 0     yhat[small] = 0     yhat[large] = quantile(y0, 0.99) * 1.5    
    yhat_se[large] = max(yhat_se[!large & !small])     yhat_se[small] =
    max(yhat_se[!large & !small])     data.frame(fit = yhat, se_fit = yhat_se) }
)

multi_bs(mods, n_boot = 50, n_clus, lm_boot)

lm_summary(x, data, resids = FALSE)

Arguments

dat_yx

tbd

reg_obj

tbd

rank

tbd

rank_by

tbd

debug

tbd

...

tbd

pred_multi() parameters:

model

tbd

y

tbd

data

tbd

n_boot

tbd

n_range

tbd

r_boots

tbd

n_clus

tbd

lm_boot

tbd

lm_summary() parameters:

y_vars

tbd

form_y

tbd

n_v_max

tbd

n_best

tbd

really_big

tbd

reg_multi_obj

tbd

mods

tbd

dat0

tbd

id_col

tbd

clus

tbd

out_dir

tbd

se_fit

tbd

return

tbd

fix_outliers

tbd

outlier_fun

tbd

multi_bs() parameters:

x

tbd

resids

tbd

Details

<Delete and Replace>


Revision History

1.0 date and revisions..

Value

reg_model: lm_boot: many_boots: reg_multi: mod_multi: pred_multi: multi_bs: lm_summary:

Author(s)

Jacob Strunk <Jacob.strunk@dnr.wa.gov>

See Also

regsubsets

Examples


<Delete and Replace>





jstrunk001/RSForInvt documentation built on April 18, 2022, 11:03 p.m.