create_sample: Create a sample of surviving observations for simulation

Description Usage Arguments Value

Description

Create a sample of surviving observations for simulation

Usage

1
2
3
create_sample(obs = 200, rep = 1, rate = 0.5, sd = 1, sd_eps = c(0, 0,
  0), b1 = c(0, 0, 0, 0), b2 = c(1, 1, 1), d = c(1, 1, 1), g1 = c(0, 0,
  0), g2 = c(0, 0, 0))

Arguments

obs

The number of observations in the dataset

rate

The survival rate. This should be a number between 0 and 1. The closer to 0 the stronger the pressure to be optimal.

sd

The standard deviation of noise term of the performance. A higher sd means that the decisions of interest are less important for performance.

d

The quadratic effect of the two decisions that captures their the diminishing returns.

b

The contribution to performance of the two decisions of interest. A four element vector for the intercept, x1, x2, x1:x2

g

A vector of two coefficients that indicate the size of the moderation effect of z on the relation between x and y.

Value

A dataset with simulated y and x1, x2 for surviving observations. The data has dimensions = c(obs, 7).


stijnmasschelein/simcompl documentation built on May 30, 2019, 5:43 p.m.