Package | Description |
---|---|
edu.umass.cs.surveyman.analyses |
Contains static and dynamic analysis structures and logic.
|
edu.umass.cs.surveyman.output |
Contains objects used to print out results or transmit data over a server.
|
edu.umass.cs.surveyman.qc |
Contains quality control metrics.
|
edu.umass.cs.surveyman.qc.biases | |
edu.umass.cs.surveyman.qc.respondents | |
edu.umass.cs.surveyman.samples |
Contains sample programs for how to use SurveyMan programmatically.
|
Modifier and Type | Class and Description |
---|---|
static class |
DynamicAnalysis.DynamicSurveyResponse
DynamicSurveyResponse extends SurveyResponse, implementing the interface ISurveyResponseReader, which allows this
class to read in responses from a web survey output (i.e., those that edu.umass.cs.runner.Runner produces).
|
Modifier and Type | Method and Description |
---|---|
SurveyResponse |
SurveyResponse.copy() |
Modifier and Type | Method and Description |
---|---|
List<? extends SurveyResponse> |
ISurveyResponseReader.readSurveyResponses(Survey s,
Reader r) |
List<? extends SurveyResponse> |
DynamicAnalysis.DynamicSurveyResponse.readSurveyResponses(Survey s,
Reader r) |
static List<SurveyResponse> |
Simulation.simulate(Survey survey,
int totalResponses,
double percentAdversaries,
RandomRespondent.AdversaryType adversaryType,
AbstractRespondent profile)
Simulates responses to a survey.
|
Modifier and Type | Method and Description |
---|---|
static Simulation.ROC |
Simulation.analyze(Survey survey,
List<? extends SurveyResponse> surveyResponses,
Classifier classifier,
double alpha)
Classifies bad actors and returns classification results for the mix of respondents provided.
|
Constructor and Description |
---|
DynamicAnalysis.DynamicSurveyResponse(SurveyResponse surveyResponse) |
Modifier and Type | Field and Description |
---|---|
SurveyResponse |
ClassificationStruct.surveyResponse |
Constructor and Description |
---|
ClassificationStruct(SurveyResponse surveyResponse,
Classifier classifier,
int numanswered,
double score,
double threshold,
boolean valid) |
Modifier and Type | Method and Description |
---|---|
SurveyResponse |
Interpreter.getResponse()
Returns an empty survey response.
|
Modifier and Type | Method and Description |
---|---|
static List<List<SurveyResponse>> |
QCMetrics.generateBootstrapSample(List<? extends SurveyResponse> responses)
Generates the bootstrap sample for the input response and the specified number of iterations.
|
Modifier and Type | Method and Description |
---|---|
protected List<Double> |
QCMetrics.computeMeans(SurveyResponse sr,
List<? extends SurveyResponse> responses,
Classifier classifier) |
boolean |
QCMetrics.entropyClassification(SurveyResponse sr,
List<? extends SurveyResponse> responses,
double alpha)
Return true if the response is valid, on the basis of an entropy-based metric.
|
double |
QCMetrics.getEntropyForResponse(SurveyResponse surveyResponse) |
double |
QCMetrics.getLLForResponse(SurveyResponse surveyResponse) |
static SurveyPath |
SurveyPath.getPath(SurveyResponse r)
Returns the set of enclosing blocks for this survey response.
|
boolean |
QCMetrics.isFinalQuestion(Question question,
SurveyResponse surveyResponse) |
boolean |
QCMetrics.logLikelihoodClassification(SurveyResponse sr,
List<? extends SurveyResponse> responses,
double alpha)
Returns true if the response is valid, on the basis of the log likelihood.
|
Modifier and Type | Method and Description |
---|---|
BreakoffByPosition |
QCMetrics.calculateBreakoffByPosition(List<? extends SurveyResponse> responses)
Aggregates the breakoff according to the last position answered.
|
BreakoffByQuestion |
QCMetrics.calculateBreakoffByQuestion(List<? extends SurveyResponse> responses)
Aggregates the breakoff according to which question was last answered.
|
WordingBiasStruct |
QCMetrics.calculateWordingBiases(List<? extends SurveyResponse> responses,
double alpha)
Searches for significant wording biases observed in survey responses.
|
ClassifiedRespondentsStruct |
QCMetrics.classifyResponses(List<? extends SurveyResponse> responses,
Classifier classifier,
double alpha)
Classifies the input responses according to the classifier.
|
protected List<Double> |
QCMetrics.computeMeans(SurveyResponse sr,
List<? extends SurveyResponse> responses,
Classifier classifier) |
boolean |
QCMetrics.entropyClassification(SurveyResponse sr,
List<? extends SurveyResponse> responses,
double alpha)
Return true if the response is valid, on the basis of an entropy-based metric.
|
static List<List<SurveyResponse>> |
QCMetrics.generateBootstrapSample(List<? extends SurveyResponse> responses)
Generates the bootstrap sample for the input response and the specified number of iterations.
|
boolean |
QCMetrics.logLikelihoodClassification(SurveyResponse sr,
List<? extends SurveyResponse> responses,
double alpha)
Returns true if the response is valid, on the basis of the log likelihood.
|
void |
QCMetrics.lpoClassification(List<? extends SurveyResponse> responses,
double epsilon)
Computes the validity of the input responses, based on the "Least popular option" metric.
|
void |
QCMetrics.makeFrequencies(List<? extends SurveyResponse> responses)
Creates a frequency map for the actual responses to the survey.
|
static PathFrequencyMap |
PathFrequencyMap.makeFrequenciesForPaths(List<SurveyPath> paths,
List<? extends SurveyResponse> responses)
Returns the counts for each path; see @etosch's blog post on the calculation.
|
void |
QCMetrics.makeProbabilities(List<? extends SurveyResponse> responses) |
static double |
QCMetrics.surveyEntropy(Survey survey,
List<? extends SurveyResponse> responses)
Calculates the empirical entropy for this survey, given a set of responses.
|
Modifier and Type | Method and Description |
---|---|
static OrderBiasStruct |
OrderBias.calculateOrderBiases(Survey survey,
List<? extends SurveyResponse> responses,
double alpha)
Searches for significant order biases observed in survey responses.
|
Modifier and Type | Field and Description |
---|---|
protected SurveyResponse |
LexicographicRespondent.surveyResponse |
Modifier and Type | Method and Description |
---|---|
SurveyResponse |
RandomRespondent.getResponse() |
SurveyResponse |
NonRandomRespondent.getResponse() |
SurveyResponse |
LexicographicRespondent.getResponse() |
abstract SurveyResponse |
AbstractRespondent.getResponse()
Method to obtain the simulated survey response for the survey that this respondent was instantiated with.
|
Modifier and Type | Method and Description |
---|---|
static void |
QCMetricsComparison.dumpData(Survey survey,
List<? extends SurveyResponse> surveyResponses,
String clz,
boolean honestRespondent,
OutputStreamWriter osw) |
static void |
QCMetricsComparison.experiment1(Survey survey,
List<? extends SurveyResponse> honestRespondents,
List<? extends SurveyResponse> badActors) |
static void |
QCMetricsComparison.experiment1(Survey survey,
List<? extends SurveyResponse> honestRespondents,
List<? extends SurveyResponse> badActors) |
static float[][] |
QCMetricsComparison.generateFeaturesForExperiment1(Survey survey,
List<? extends SurveyResponse> responses) |
Copyright © 2015. All rights reserved.