Description Usage Arguments Details Value See Also Examples
Generates sample data for running auction_model
1 2 3 4 5 6 7 8 9 10 |
obs |
Number of observations (or auctions) to draw. |
max_n_bids |
Maximum number of bids per auction (must be 3 or greater). The routine generates a vector of length |
new_x_mean |
Mean values for observable controls to be generated from a Normal distribution. |
new_x_sd |
Standard deviations for observable controls to be generated from a Normal distribution. |
mu |
Value for mu, or mean, of private value distribution (Weibull) to be generated. |
alpha |
Value for alpha, or shape parameter, of private value distribution (Weibull) to be generated. |
sigma |
Value for standard deviation of unobserved heterogeneity distribution. Note that the distribution is assumed to have mean 1. |
beta |
Coefficients for the generated observable controls. Must be of the same length as |
This function generates example data for feeding into auction_model(). Specifically, the winning bid, number of bids, and observed heterogeneity are sampled for the specified number of observations.
A data frame with obs
rows and the following columns:
winning_bid |
numeric values of the winning bids for each observation |
n_bids |
number of bids for each observation |
X# |
X terms that represent observed heterogeneity |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.