Variants of the strategy frequency estimation method by Dal Bo & Frechette (2011)
stratEst is a statistical software package which implements variants of the strategy estimation method (Dal Bo & Frechette, 2011). Strategies can be estimated from the data or supplied by the user in the form of deterministic finite-state automata. The package uses the EM algorithm (Dempster, 1977) and the Newton-Raphson method to obtain maximum-likelihood estimates of the population shares and choice parameters of the strategies. The number and the complexity of strategies can be restricted by the user or selected based on information criteria. The package also features an extension of strategy estimation in the spirit of latent class regression to assess the effects of covariates on strategy use.
To install the stratEst package from CRAN:
You can install the development version of stratEst from github:
This example shows how to replicate the results in column 1 of table 7 on page 424 of Dal Bo and Frechette (2011). The results for the first treatment with delta = 1/2 and R = 32 can be obtained with the following code.
library(stratEst)data <- DF2011[DF2011$treatment == 1,]strats <- rbind(ALLD,ALLC,GRIM,TFT,T2,WSLS)model <- stratEst(data,strats,print.messages = F)round(model$shares,3)#> [,1]#> [1,] 0.92#> [2,] 0.00#> [3,] 0.00#> [4,] 0.08#> [5,] 0.00#> [6,] 0.00