Each cell's next-token shares: every respondent takes its profile's distribution, averaged per cell
Source:R/aggregate.R
aggregate_ntp.RdEach cell's next-token shares: every respondent takes its profile's distribution, averaged per cell
Usage
aggregate_ntp(
profiles,
respondents,
question,
cell = "cell_id",
profile = "profile_id",
columns = NULL
)Arguments
- profiles
A data frame with one next-token distribution per profile.
- respondents
A data frame with one row per respondent.
- question
A question from
read_questions().- cell
Cell label column.
- profile
Profile id column in both tables.
- columns
Share columns in option order, or
NULLfor the option labels.