data: a stratEst.data object. Alternatively, the arguments num.ids, num.games, and num.periods can be used if no data is available.
strategies: a list of strategies. Each element if the list must be an object of class stratEst.strategy.
shares: a numeric vector of strategy shares. The order of the elements corresponds to the order in strategies. NA values are not allowed. Use a list of numeric vectors if data has more than one sample and shares are sample specific.
coefficients: a matrix of regression coefficients. Column names correspond to the names of the strategies, row names to the names of the covariates.
covariate.mat: a matrix with the covariates in columns. The column names of the matrix indicate the names of the covariates. The matrix must have as many rows as there are individuals.
num.ids: an integer. The number of individuals. Default is 100.
num.games: an integer. The number of games. Default is 5.
num.periods: a vector of integers with as many elements num.games. The elements specify the number of periods in each game. Default (NULL) means 5 periods in each game.
fixed.assignment: a logical value. If FALSE individuals use potentially different strategies in each each game. If TRUE, individuals use the same strategy in each game. Default is FALSE.
input.na: a logical value. If FALSE an input value is randomly selected for the first period. Default is FALSE.
sample.id: a character string indicating the name of the variable which identifies the samples in data. Individual observations must be nested in samples. Default is NULL.
Returns
A stratEst.data object. A data frame in the long format with the following variables: - id: the variable that identifies observations of the same individual.
game: the variable that identifies observations of the same game.