fit_numerosity: Fit a Simple Numerosity Model

View source: R/nsymncmp.R

fit_numerosityR Documentation

Fit a Simple Numerosity Model

Description

This model assumes the distribution of mental representation for a given number/count k is N(k, (w * k) ^ 2).

Usage

fit_numerosity(data, name_bigset, name_smallset, name_acc, n_fit = 5, seed = 1)

Arguments

data

Raw data of class data.frame.

name_bigset, name_smallset

Variable name in data indicates bigger and smaller set.

name_acc

Variable name in data indicates user's response is correct or not.

n_fit

Number of fits to try to find the best estimate.

seed

Random seed. Default is 1 so that results can be reproduced.

Value

A list() with structure the same as optim().


psychelzh/preproc.iquizoo documentation built on Oct. 20, 2024, 6:27 p.m.