nbashots_sim

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.

About this table

DescriptionSimulated 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.
ReferenceDomingue, B. W. (2026). NBA shots simulation [R script]. Item Response Warehouse. https://github.com/ben-domingue/irw/blob/main/data/simsyn/nbashots_sim.R
LicenceCC0 1.0
Generating scripthttps://github.com/ben-domingue/irw/blob/main/data/simsyn/nbashots_sim.R

Size and shape

Responses136,368
Respondents400
Items5
Response categories2
Responses per respondent340.920
Responses per item27273.600
Density68.184

Columns

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.

Get the data

Download CSVno account neededBrowse on Redivisexplore and queryCroissant metadataHugging Face, Kaggle, OpenML

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)

How to cite

@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}
}

Version and provenance

IRW versionv744
Redivis datasetirw_simsyn v2.0
Redivis dataset DOI10.57761/5pwz-hz26
Manifest pin for this IRW versionv2.0
Metadata sourceirw_meta v78.0