def lmeTrace(dm, traceParams, suffix=""): """ desc: | Performs the lme analysis for the cueLum Bright vs Dark contrast. arguments: dm: A DataMatrix. traceParams: The trace parameters. keywords: suffix: A suffix to identify the trace. returns: | A 2D array where the columns are [p, ciHi, ciLo] and the rows are the samples. """ _dm = dm.selectColumns(["saccCol", "subject_nr", "__trace_postSacc__", "__trace_cue__", "__trace_baseline__"]) a = TraceKit.mixedModelTrace(_dm, traceModel, winSize=winSize, **traceParams) return a
def lmeTrace(dm, traceParams=trialParams, suffix=''): """ Performs the lme analysis for the cueLum Bright vs Dark contrast. To speed up the analysis, the results are cached. Arguments: dm -- A DataMatrix. Keyword arguments: traceParams -- The trace parameters. (default=trialParams) suffix -- A suffix to identify the trace. (default='') Returns: A 2D array where the columns are [p, ciHi, ciLo] and the rows are the samples. """ _dm = dm.selectColumns(['cueLum', 'subject_nr', '__trace_trial__', \ '__trace_baseline__']) a = tk.mixedModelTrace(_dm, traceModel, winSize=winSize, **traceParams) return a