choice_prob

Compute the choice probability (CP), which is the ROC value between two response distributions associated with two alternative outcomes of a decision.

For convenience, this analysis type also includes an option to compute a variable parameter that reflects a choice made on the basis of the responses within an nData file.

Output types

Parameters

Examples

Compute CP for a decision variable and print it to the standard output
choice_prob
all
choice_prob_print

chan unit0

start 0                # Start of time window to count spikes
period 2000            # Duration of time period to count spikes

decision_param_name  choice   # Name of the decision parameter

histogram_file  zz.hist.pl  # Write xplot histograms to this file showing
                            #    the two response distributions

Create a decision variable on the basis of spike responses in the input nData file, and write an output nData file that includes this decision variable as a variable parameter.
choice_prob
all
write_ndata_append_choice

chan unit0

start 0                # Start of time window to count spikes
period 2000            # Duration of time period to count spikes


#
#  To simulate a behavioral decision, we will compare the spike counts of
#  two single neurons
#

choice_add  exs550     # Compute a metric by adding spike counts from this
                       #   channel (or population)

choice_sub  exs560     # Compute a metric by subtracting spike counts from
                       #   this channel (or population)

decision_param_name  choice   # Use this name for decision parameter

histogram_file  zz.hist.pl  # Write xplot histograms to this file to see
                            #    the distributions of the decision variables

Create a decision variable on the basis of the difference of two sums of respones in the input nData file, and write an output nData file that includes this decision variable as a variable parameter.
choice_prob
all
write_ndata_append_choice

chan ds_0_0            # Note, this is not used, but needs to specify a valid
                       #   channel in the file.  (To be fixed in future.)

start 0                # Start of time window to count spikes
period 2000            # Duration of time period to count spikes


#
#  To simulate a behavioral decision, we will compare spike counts across
#  two sets of responses, where each set includes all channels that have
#  names beginning with the specified strings, "choice_add" and "choice_sub".
#
choice_type prefix_diff  # Interpret 'choice_add' and '..._sub' as prefixes

choice_add  ds_        # Compute a metric by adding spike counts from this
                       #   channel (or population)

choice_sub  dsopp_     # Compute a metric by subtracting spike counts from
                       #   this channel (or population)

decision_param_name  choice   # Use this name for decision parameter