analyzeOneConditionDF: Analyze one condition, and return estimates as dataframe so...

Description Usage Arguments Value Examples

View source: R/analyze_one_condition.R

Description

Analyze one condition, and return estimates as dataframe so suitable for use in dplyr pipelines

Usage

1
analyzeOneConditionDF(df, numItemsInStream, paramBounds, nReplicates = 3)

Arguments

df

A dataframe that must have fields targetSP and SPE

numItemsInStream

Number of items in the stream (assumed to be the same for all trials)

paramBounds

With fields lower and upper, each of length two indicating min and max val for efficacy,latency,precision

nReplicates

How many times to fit the model (with different random starting points within paramBounds

Value

efficay, latency, precision, val (negative log likelihood), and warnings (currently disabled, don't know why)

Examples

1
2
df <-  subset(P2E2pilot,subject=="CB" & target==1 & condition==1)
analyzeOneConditionDF(df, 16, parameterBounds(), 1)

alexholcombe/mixRSVP documentation built on Aug. 30, 2018, 5:43 a.m.