preds.from.ls: Predictor Generation

Description Usage Arguments Value Examples

Description

Generate predictors_ from a landscape

Usage

1
2
preds.from.ls(pred_choice, gridsize, code, n_preds_original, n_preds,
  base_ = NA, formu, effect.size = 1)

Arguments

pred_choice

vector of integers defining the set of predictors originally selected

gridsize

integer determining size of the map

code

code (e.g. "110") to be used in simData, check FReibier::simData documentation for further help

n_preds_original

integer defining the number of predictors

n_preds

integer defining total number of predictors, quadratic conditions and interactions

formu

formula without an response such as ~ x1 + x2

effect.size

max distance of the base coefficients to zero

base

vector of numerics as the parameters coefficients

Value

matrix of predicotrs and a map suitable for plotting with ggplot2

Examples

1

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