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
LicenceCC BY 4.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

Get the data

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

Or load it directly in R or Python:

# R
install.packages("remotes")
remotes::install_github("itemresponsewarehouse/Rpkg")
library(irw)
df <- irw_fetch("nbashots_sim", source = "sim")
# Python
pip install irw

import irw
df = irw.fetch("nbashots_sim", 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 versionv439
Redivis datasetirw_simsyn v1.2
Redivis dataset DOI10.57761/t5s5-a326
Manifest pin for this IRW versionv1.1
Metadata sourceirw_meta v27.0