Public Member Functions

BootstrapList Class Reference

list of bootstrap samples More...

#include <mclist.h>

Inheritance diagram for BootstrapList:
PsiMClist

List of all members.

Public Member Functions

 BootstrapList (unsigned int N, unsigned int nprm, unsigned int nblocks, std::vector< double > Cuts)
 set up the list
void setBCa_t (unsigned int i, double Bias, double Acceleration)
 set bias and acceleration to get BCa confidence intervals
void setBCa_s (unsigned int i, double Bias, double Acceleration)
 set bias and acceleration to get BCa confidence intervals
void setData (unsigned int i, const std::vector< int > &newdata)
 store a simulated data set
std::vector< int > getData (unsigned int i) const
 get a simulated data set at posititon i
double getThres (double p, unsigned int cut)
 get the p-th percentile associated with the threshold at cut
double getThres_byPos (unsigned int i, unsigned int cut)
 get the threshold for the i-th sample
void setThres (double thres, unsigned int i, unsigned int cut)
 set the value of a threshold associated with the threshold at cut
double getSlope (double p, unsigned int cut)
 get the p-th percentile associated with the slope at the given cut
double getSlope_byPos (unsigned int i, unsigned int cut)
 get the slope at cut for the i-th sample
void setSlope (double sl, unsigned int i, unsigned int cut)
 set the value of the slope associated with the threshold at cut
unsigned int getNblocks (void) const
 get the number of blocks in the underlying dataset
double getCut (unsigned int i) const
 get the value of cut i
double getAcc_t (unsigned int i) const
 get the acceleration constant for cut i
double getBias_t (unsigned int i) const
 get the bias for cut i
double getAcc_s (unsigned int i) const
 get the acceleration constant for cut i
double getBias_s (unsigned int i) const
 get the bias for cut i
void setRpd (unsigned int i, double r_pd)
 set correlation between predicted values and deviance residuals for a simulated dataset
double getRpd (unsigned int i) const
 get correlation between predicted values and deviance residuals for simulated dataset i
double percRpd (double p)
 get the p-th percentile of the correlations between predicted values and deviance residuals
void setRkd (unsigned int i, double r_kd)
 set correlation between block index and deviance residuals for a simulated dataset
double getRkd (unsigned int i) const
 get correlation between block index and deviance residuals for simulated dataset i
double percRkd (double p)
 get the p-th percentile of the correlations between block index and deviance residuals

Detailed Description

list of bootstrap samples

Bootstrap samples support some special operations that regular monte carlo samples don't. In particular bootstrap samples from a psychometric function should incorporate information about

  1. The thresholds that are associated with each parameter vector
  2. the bootstrap samples themselves and not only the resulting parameter estimates
  3. correlations of the psychometric function with the bootstrap samples "sequence"

Constructor & Destructor Documentation

BootstrapList::BootstrapList ( unsigned int  N,
unsigned int  nprm,
unsigned int  nblocks,
std::vector< double >  Cuts 
) [inline]

set up the list

Parameters:
N number of samples to be drawn
nprm number of parameters in the model
nblocks number of blocks in the experiment
Cuts performance levels at which thresholds should be determined

Member Function Documentation

void BootstrapList::setBCa_s ( unsigned int  i,
double  Bias,
double  Acceleration 
) [inline]

set bias and acceleration to get BCa confidence intervals

Parameters:
i index of the cut for which Bias and Acceleration should be set
Bias Bias to be set
Acceleration Acceleration to be set
void BootstrapList::setBCa_t ( unsigned int  i,
double  Bias,
double  Acceleration 
) [inline]

set bias and acceleration to get BCa confidence intervals

Parameters:
i index of the cut for which Bias and Acceleration should be set
Bias Bias to be set
Acceleration Acceleration to be set
void BootstrapList::setData ( unsigned int  i,
const std::vector< int > &  newdata 
)

store a simulated data set

Parameters:
i index of the bootstrap sample to be set
newdata response counts in the new bootstrap sample (not proportion correct)
void BootstrapList::setRpd ( unsigned int  i,
double  r_pd 
)

set correlation between predicted values and deviance residuals for a simulated dataset

Parameters:
i index of the bootstrap sample
r_pd new correlation
void BootstrapList::setSlope ( double  sl,
unsigned int  i,
unsigned int  cut 
)

set the value of the slope associated with the threshold at cut

Parameters:
sl new value of the slope
i index of the bootstrap sample
cut index of the desired cut
void BootstrapList::setThres ( double  thres,
unsigned int  i,
unsigned int  cut 
)

set the value of a threshold associated with the threshold at cut

Parameters:
thres new value of the threshold
i index of the bootstrap sample
cut index of the desired cut

The documentation for this class was generated from the following files: