136,368 simulated responses from 400 respondents to 5 items.
Simulated data. These responses were generated by a script, not collected from people; see the generating script. The cov_true_theta column holds the true generating values, which a real dataset would not have.
| Description | Simulated basketball shots (400 shooters, 136,368 shots; not NBA data). Items are shot zones; shooters choose their shots, with better shooters taking harder ones, so raw accuracy mixes skill with selection. True skill in cov_true_theta; court location, distance and game clock in trial_ columns. |
|---|---|
| Reference | Domingue, B. W. (2026). NBA shots simulation [R script]. Item Response Warehouse. https://github.com/ben-domingue/irw/blob/main/data/simsyn/nbashots_sim.R |
| Licence | CC0 1.0 |
| Generating script | https://github.com/ben-domingue/irw/blob/main/data/simsyn/nbashots_sim.R |
| Responses | 136,368 |
|---|---|
| Respondents | 400 |
| Items | 5 |
| Response categories | 2 |
| Responses per respondent | 340.920 |
| Responses per item | 27273.600 |
| Density | 68.184 |
cov_rolecov_true_thetaiditemresptrial_disttrial_gameclocktrial_latetrial_locxtrial_locytrial_numbertrial_three
id, item, resp are defined in the IRW data standard and mean the same in every table. The other columns are set by the generating script.
Or load it directly in R (no account needed with irw 1.4.0 or later) or Python (needs a free Redivis account; the first call opens a browser to sign in):
# R
install.packages("irw")
library(irw)
df <- irw_fetch("nbashots_sim", source = "sim")
# Python
pip install irw
import irw
df = irw.fetch("nbashots_sim", source="sim")
Or in Stata, which reads the same no-account CSV as the button above:
* Stata
net install irw, from("https://raw.githubusercontent.com/itemresponsewarehouse/Stata-pkg/main/")
irw_fetch nbashots_sim, clear source(sim)
@misc{domingue_nbashots_sim,
author = {Domingue, Ben},
title = {NBA Shots Simulation},
url = {https://github.com/ben-domingue/irw/blob/main/data/simsyn/nbashots_sim.R},
note = {GitHub repository}
}
| IRW version | v744 |
|---|---|
| Redivis dataset | irw_simsyn v2.0 |
| Redivis dataset DOI | 10.57761/5pwz-hz26 |
| Manifest pin for this IRW version | v2.0 |
| Metadata source | irw_meta v78.0 |