rsf.score: A rsf score function

Description Usage Arguments Value Examples

Description

This function generates rsf scores/effect plots

Usage

1
2
3
4
rsf.score(formu = NA, pop_size = NA, base_ = NA, pred_choice = NA,
  n_preds = NA, n_preds_original = NA, gridsize = NA, predictors_ = NA,
  ind_sd = NA, n_values = NA, uc_type = NA, mode = NA,
  param_list = list(NA), silent = T, ind_prefs = NA)

Arguments

formu

formula without an response such as ~ x1 + x2

pop_size

integer defining the number of individuals

base_

vector of numerics as the parameters coefficients

pred_choice

vector of integers defining the set of predictors originally selected

n_preds

integer defining total number of predictors, quadratic conditions and interactions

n_preds_original

integer defining the number of predictors

gridsize

integer determining size of the map

predictors_

matrix of predictors

ind_sd

integer as the standard deviation of the normal distribution with a mean of 1 that is multiplied with the parameter coefficients

n_values

integer as the length of the min - max - sequence of a predictor (x-axis of an effect plot)

uc_type

character defining the type of uncertainty, "both", "marg" and "cond" are possible

mode

character defining wether effect plots should be generated or if the function is used inside a bootstrap. "plot" and "bootstrap" are possible

param_list

list of parameters for shorter lines, see code for details

Value

In plot mode it returns a data.frame with quantiles suitable for ggplot2 and the plot itself, in bootstrap mode it returns an array with non-aggregated rsf-scores.

Examples

1
plot.truth()

aMilles/rsfsim documentation built on May 15, 2019, 4:20 a.m.