}
}
private void analysisExcel(){
FileOutput fout = null;
if(this.fileNumberingSet){
fout = new FileOutput(this.outputFilename, 'n');
}
else{
fout = new FileOutput(this.outputFilename);
}
// calculate alphas if not already calculated
if(!rawAlphaCalculated)this.rawAlpha();
if(!standardizedAlphaCalculated)this.standardizedAlpha();
// output title information
fout.println("CRONBACH'S ALPHA RELIABILITY ESTIMATOR");
fout.println("Program: Cronbach - Analysis Output");
for(int i=0; i<this.titleLines; i++)fout.println(title[i]);
Date d = new Date();
String day = DateFormat.getDateInstance().format(d);
String tim = DateFormat.getTimeInstance().format(d);
fout.println("Program executed at " + tim + " on " + day);
fout.println();
// output reliability estimators
fout.println("RELIABILITY ESTIMATORS");
fout.println("Cronbach's coefficient alpha");
fout.printtab("Raw data ");
fout.println(Fmath.truncate(this.rawAlpha, this.trunc));
fout.printtab("Standardized data ");
fout.println(Fmath.truncate(this.standardizedAlpha, this.trunc));
fout.println();
fout.println("Average of the inter-item correlation coefficients, excluding item totals");
fout.printtab("Raw data ");
fout.println(Fmath.truncate(this.rawMeanRhoWithoutTotals, this.trunc));
fout.printtab("Standardized data ");
fout.println(Fmath.truncate(this.standardizedMeanRhoWithoutTotals, this.trunc));
fout.println();
fout.println("Average of the inter-item correlation coefficients, including item totals");
fout.printtab("Raw data ");
fout.println(Fmath.truncate(this.rawMeanRhoWithTotals, this.trunc));
fout.printtab("Standardized data ");
fout.println(Fmath.truncate(this.standardizedMeanRhoWithTotals, this.trunc));
fout.println();
// output any deletions or replacements
fout.println("'NO RESPONSE' DELETIONS AND REPLACEMENTS");
// deleted persons
boolean deletionFlag = false;
if(this.nDeletedPersons!=0){
deletionFlag = true;
fout.printtab("Number of persons deleted ");
fout.println(this.nDeletedPersons);
fout.printtab("Indices of deleted persons: ");
for(int i=0; i<this.nDeletedPersons; i++)fout.printtab(this.deletedPersonsIndices[i]+1);
fout.println();
}
else{
fout.println("No persons were deleted ");
}
// deleted items
if(this.nDeletedItems!=0){
deletionFlag = true;
fout.printtab("Number of items deleted ");
fout.println(this.nDeletedItems);
fout.printtab("Names of deleted items: ");
for(int i=0; i<this.nDeletedItems; i++)fout.printtab(this.originalItemNames[this.deletedItemsIndices[i]]);
fout.println();
}
else{
fout.println("No items were deleted ");
}
// replacements
if(this.nReplacements!=0){
fout.printtab("Number of 'no responses' replaced ");
fout.println(this.nReplacements);
fout.printtab("Item name and person index of replacements: ");
for(int i=0; i<this.nReplacements; i++)fout.printtab(this.replacementIndices[i] + " ");
fout.println();
fout.printtab("Replacement option: ");
fout.println(this.replacementOptionNames[this.replacementOption-1]);
fout.println();
}
else{
if(deletionFlag){
fout.println("No 'no response' replacements, other than any above deletions, were made ");
}
else{
fout.println("No 'no response' replacements were made ");
}
}
fout.println();
fout.printtab("Number of items used ");
fout.println(this.nItems);
fout.printtab("Number of persons used ");
fout.println(this.nPersons);
fout.println();
// Correlation coefficients
fout.println("CORRELATION COEFFICIENTS");
fout.println("Correlation coefficients between items - raw data");
fout.printtab(" ");
for(int i=0; i<=this.nItems; i++)fout.printtab(this.itemNames[i]);
fout.println();
for(int i=0; i<=this.nItems; i++){
fout.printtab(this.itemNames[i]);
for(int j=0; j<=this.nItems; j++)fout.printtab(Fmath.truncate(this.rawCorrelationCoefficients[i][j], this.trunc));
fout.println();
}
fout.println();
fout.print("Average inter-item correlation coefficient (excluding total) ");
fout.println(Fmath.truncate(this.rawMeanRhoWithoutTotals, this.trunc));
fout.print("Standard deviation of the inter-item correlation coefficient (excluding total) ");
fout.println(Fmath.truncate(this.rawStandardDeviationRhoWithoutTotals, this.trunc));
fout.print("Average inter-item correlation coefficient (including total) ");
fout.println(Fmath.truncate(this.rawMeanRhoWithTotals, this.trunc));
fout.print("Standard deviation of the inter-item correlation coefficient (including total) ");
fout.println(Fmath.truncate(this.rawStandardDeviationRhoWithTotals, this.trunc));
fout.println();
fout.println("Correlation coefficients between items - standardized data");
fout.printtab(" ");
for(int i=0; i<=this.nItems; i++)fout.printtab(this.itemNames[i]);
fout.println();
for(int i=0; i<=this.nItems; i++){
fout.printtab(this.itemNames[i]);
for(int j=0; j<=this.nItems; j++)fout.printtab(Fmath.truncate(this.standardizedCorrelationCoefficients[i][j], this.trunc));
fout.println();
}
fout.println();
fout.print("Average inter-item correlation coefficient (excluding total) ");
fout.println(Fmath.truncate(this.standardizedMeanRhoWithoutTotals, this.trunc));
fout.print("Standard deviation of the inter-item correlation coefficient (excluding total) ");
fout.println(Fmath.truncate(this.standardizedStandardDeviationRhoWithoutTotals, this.trunc));
fout.print("Average inter-item correlation coefficient (including total) ");
fout.println(Fmath.truncate(this.standardizedMeanRhoWithTotals, this.trunc));
fout.print("Standard deviation of the inter-item correlation coefficient (including total) ");
fout.println(Fmath.truncate(this.standardizedStandardDeviationRhoWithTotals, this.trunc));
fout.println();
// Item statistics
fout.println("ITEMS: MEANS, STANDARD DEVIATIONS, SKEWNESS AND KURTOSIS");
fout.println("Raw data");
fout.printtab("item ");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("moment");
fout.printtab("median");
fout.printtab("quartile");
fout.printtab("kurtosis");
fout.println("dichotomous");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab("skewness");
fout.printtab("skewness");
fout.printtab("skewness");
fout.printtab("excess ");
fout.println("percentage");
for(int i=0; i<this.nItems; i++){
fout.printtab(this.itemNames[i]);
fout.printtab(Fmath.truncate(this.rawItemMeans[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemStandardDeviations[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMomentSkewness[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMedianSkewness[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemQuartileSkewness[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemKurtosisExcess[i], this.trunc));
fout.println(Fmath.truncate(this.dichotomousPercentage[i], 1));
}
fout.println();
fout.println("ITEMS: MINIMA, MAXIMA, MEDIANS, RANGES AND TOTALS");
fout.println("raw data");
fout.printtab("item ");
fout.printtab("minimum");
fout.printtab("maximum");
fout.printtab("median");
fout.printtab("range");
fout.printtab("total");
fout.println("dichotomous");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println("percentage");
for(int i=0; i<this.nItems; i++){
fout.printtab(this.itemNames[i]);
fout.printtab(Fmath.truncate(this.rawItemMinima[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMaxima[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMedians[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemRanges[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawItemTotals[i], this.trunc));
fout.println(Fmath.truncate(this.dichotomousPercentage[i], 1));
}
fout.println();
fout.printtab("item");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("variance");
fout.printtab("minimum");
fout.printtab("maximum");
fout.println("range");
fout.printtab("statistic ");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println(" ");
fout.printtab("item means");
fout.printtab(Fmath.truncate(this.rawItemMeansMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMeansSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMeansVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMeansMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMeansMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemMeansRange, this.trunc));
fout.printtab("item standard deviations");
fout.printtab(Fmath.truncate(this.rawItemStandardDeviationsMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemStandardDeviationsSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemStandardDeviationsVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemStandardDeviationsMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemStandardDeviationsMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemStandardDeviationsRange, this.trunc));
fout.printtab("item variances");
fout.printtab(Fmath.truncate(this.rawItemVariancesMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemVariancesSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemVariancesVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemVariancesMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemVariancesMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemVariancesRange, this.trunc));
fout.printtab("item mimima");
fout.printtab(Fmath.truncate(this.rawItemMinimaMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMinimaSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMinimaVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMinimaMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMinimaMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemMinimaRange, this.trunc));
fout.printtab("item maxima");
fout.printtab(Fmath.truncate(this.rawItemMaximaMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMaximaSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMaximaVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMaximaMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMaximaMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemMaximaRange, this.trunc));
fout.printtab("item medians");
fout.printtab(Fmath.truncate(this.rawItemMediansMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMediansSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMediansVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMediansMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemMediansMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemMediansRange, this.trunc));
fout.printtab("item ranges");
fout.printtab(Fmath.truncate(this.rawItemRangesMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemRangesSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemRangesVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemRangesMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemRangesMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemRangesRange, this.trunc));
fout.printtab("item totals");
fout.printtab(Fmath.truncate(this.rawItemTotalsMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemTotalsSd, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemTotalsVar, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemTotalsMin, this.trunc));
fout.printtab(Fmath.truncate(this.rawItemTotalsMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemTotalsRange, this.trunc));
fout.println();
fout.println("Standardized data");
fout.println("ITEMS: MEANS, STANDARD DEVIATIONS, SKEWNESS AND KURTOSIS");
fout.printtab("item ");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("moment");
fout.printtab("median");
fout.printtab("quartile");
fout.println("kurtosis");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab("skewness");
fout.printtab("skewness");
fout.printtab("skewness");
fout.println("excess ");
for(int i=0; i<this.nItems; i++){
fout.printtab(this.itemNames[i]);
fout.printtab(Fmath.truncate(this.standardizedItemMeans[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemStandardDeviations[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMomentSkewness[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMedianSkewness[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemQuartileSkewness[i], this.trunc));
fout.println(Fmath.truncate(this.standardizedItemKurtosisExcess[i], this.trunc));
}
fout.println();
fout.println("ITEMS: MINIMA, MAXIMA, MEDIANS, RANGES AND TOTALS");
fout.println("Standardized data");
fout.printtab("item ");
fout.printtab("minimum");
fout.printtab("maximum");
fout.printtab("median");
fout.printtab("range");
fout.println("total");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println(" ");
for(int i=0; i<this.nItems; i++){
fout.printtab(this.itemNames[i]);
fout.printtab(Fmath.truncate(this.standardizedItemMinima[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMaxima[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMedians[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemRanges[i], this.trunc));
fout.println(Fmath.truncate(this.standardizedItemTotals[i], this.trunc));
}
fout.println();
fout.printtab("item");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("variance");
fout.printtab("minimum");
fout.printtab("maximum");
fout.println("range");
fout.printtab("statistic ");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println(" ");
fout.printtab("item means");
fout.printtab(Fmath.truncate(this.standardizedItemMeansMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMeansSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMeansVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMeansMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMeansMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemMeansRange, this.trunc));
fout.printtab("item standard deviations");
fout.printtab(Fmath.truncate(this.standardizedItemStandardDeviationsMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemStandardDeviationsSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemStandardDeviationsVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemStandardDeviationsMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemStandardDeviationsMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemStandardDeviationsRange, this.trunc));
fout.printtab("item variances");
fout.printtab(Fmath.truncate(this.standardizedItemVariancesMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemVariancesSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemVariancesVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemVariancesMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemVariancesMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemVariancesRange, this.trunc));
fout.printtab("item mimima");
fout.printtab(Fmath.truncate(this.standardizedItemMinimaMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMinimaSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMinimaVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMinimaMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMinimaMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemMinimaRange, this.trunc));
fout.printtab("item maxima");
fout.printtab(Fmath.truncate(this.standardizedItemMaximaMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMaximaSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMaximaVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMaximaMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemMaximaMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemMaximaRange, this.trunc));
fout.print("item medians");
fout.print(Fmath.truncate(this.rawItemMediansMean, this.trunc));
fout.print(Fmath.truncate(this.rawItemMediansSd, this.trunc));
fout.print(Fmath.truncate(this.rawItemMediansVar, this.trunc));
fout.print(Fmath.truncate(this.rawItemMediansMin, this.trunc));
fout.print(Fmath.truncate(this.rawItemMediansMax, this.trunc));
fout.println(Fmath.truncate(this.rawItemMediansRange, this.trunc));
fout.printtab("item ranges");
fout.printtab(Fmath.truncate(this.standardizedItemRangesMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemRangesSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemRangesVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemRangesMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemRangesMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemRangesRange, this.trunc));
fout.printtab("item totals");
fout.printtab(Fmath.truncate(this.standardizedItemTotalsMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemTotalsSd, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemTotalsVar, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemTotalsMin, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedItemTotalsMax, this.trunc));
fout.println(Fmath.truncate(this.standardizedItemTotalsRange, this.trunc));
fout.println();
fout.println("DELETION OF ITEMS");
fout.printtab(" ");
fout.printtab("Raw data ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println("Standardized data");
fout.printtab("Deleted item");
fout.printtab("Alpha ");
fout.printtab("Correlation ");
fout.printtab("Average ");
fout.printtab("Average ");
fout.printtab("Alpha ");
fout.printtab("Correlation ");
fout.printtab("Average ");
fout.println("Average ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("coefficient");
fout.printtab("inter-item ");
fout.printtab("inter-item ");
fout.printtab(" ");
fout.printtab("coefficient ");
fout.printtab("inter-item ");
fout.println("inter-item ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("with total ");
fout.printtab("correlation");
fout.printtab("correlation");
fout.printtab(" ");
fout.printtab("with total ");
fout.printtab("correlation");
fout.println("correlation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("coefficient");
fout.printtab("coefficient");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("coefficient");
fout.println("coefficient");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("without totals");
fout.printtab("with totals ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("without totals");
fout.println("with totals ");
double[] newRawAlpha = new double[this.nItems];
double[] newStandardizedAlpha = new double[this.nItems];
double[] newRawRho = new double[this.nItems];
double[] newStandardizedRho = new double[this.nItems];
for(int i=0; i<this.nItems; i++){
int index = i+1;
double[][] newScore1 = this.deleteItem(index);
Cronbach cr = new Cronbach();
cr.enterScoresAsRowPerPerson(newScore1);
double rawAlphaD = cr.rawAlpha();
newRawAlpha[i] = rawAlphaD;
double rawMeanRhoWithTotalsD = cr.rawAverageCorrelationCoefficientsWithTotals();
double rawMeanRhoWithoutTotalsD = cr.rawAverageCorrelationCoefficients();
double[] rawPersonTotalsD = cr.rawPersonTotals();
double rawRhoAgainstTotalsD = Stat.corrCoeff(rawPersonTotalsD, this.scores0[i]);
newRawRho[i] = rawRhoAgainstTotalsD;
double standardizedAlphaD = cr.standardizedAlpha();
newStandardizedAlpha[i] = standardizedAlphaD;
double standardizedMeanRhoWithTotalsD = cr.standardizedAverageCorrelationCoefficientsWithTotals();
double standardizedMeanRhoWithoutTotalsD = cr.standardizedAverageCorrelationCoefficients();
double[] standardizedPersonTotalsD = cr.standardizedPersonTotals();
double standardizedRhoAgainstTotalsD = Stat.corrCoeff(standardizedPersonTotalsD, this.scores0[i]);
newStandardizedRho[i] = standardizedRhoAgainstTotalsD;
fout.printtab(this.itemNames[i]);
fout.printtab(Fmath.truncate(rawAlphaD, trunc));
fout.printtab(Fmath.truncate(rawRhoAgainstTotalsD, trunc));
fout.printtab(Fmath.truncate(rawMeanRhoWithoutTotalsD, trunc));
fout.printtab(Fmath.truncate(rawMeanRhoWithTotalsD, trunc));
fout.printtab(Fmath.truncate(standardizedAlphaD, trunc));
fout.printtab(Fmath.truncate(standardizedRhoAgainstTotalsD, trunc));
fout.printtab(Fmath.truncate(standardizedMeanRhoWithoutTotalsD, trunc));
fout.println(Fmath.truncate(standardizedMeanRhoWithTotalsD, trunc));
}
fout.println();
fout.printtab("No item deleted");
fout.printtab(Fmath.truncate(this.rawAlpha, trunc));
fout.printtab(" ");
fout.printtab(Fmath.truncate(this.rawMeanRhoWithoutTotals, trunc));
fout.printtab(Fmath.truncate(this.rawMeanRhoWithTotals, trunc));
fout.printtab(Fmath.truncate(this.standardizedAlpha, trunc));
fout.printtab(" ");
fout.printtab(Fmath.truncate(this.standardizedMeanRhoWithoutTotals, trunc));
fout.println(Fmath.truncate(this.standardizedMeanRhoWithTotals, trunc));
fout.println();
// output a deleted item data file
this.deletedItemDataFile(newRawAlpha, newRawRho, newStandardizedAlpha, newStandardizedRho);
fout.println("INDIVIDUALS - raw data");
fout.printtab("person ");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("minimum");
fout.printtab("maximum");
fout.printtab("range");
fout.printtab("total");
fout.println("scores:");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
for(int i=0; i<this.nItems; i++)fout.printtab(this.itemNames[i]);
fout.println();
for(int i=0; i<this.nPersons; i++){
fout.printtab((this.personIndices[i]+1));
fout.printtab(Fmath.truncate(this.rawPersonMeans[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawPersonStandardDeviations[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawPersonMinima[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawPersonMaxima[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawPersonRanges[i], this.trunc));
fout.printtab(Fmath.truncate(this.rawPersonTotals[i], this.trunc));
for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.scores1[i][j], this.trunc));
fout.println();
}
fout.println();
fout.println("INDIVIDUALS - standardized data");
fout.printtab("person ");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("minimum");
fout.printtab("maximum");
fout.printtab("range");
fout.printtab("total");
fout.println("scores:");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
for(int i=0; i<this.nItems; i++)fout.printtab(this.itemNames[i]);
fout.println();
for(int i=0; i<this.nPersons; i++){
fout.printtab((this.personIndices[i]+1));
fout.printtab(Fmath.truncate(this.standardizedPersonMeans[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedPersonStandardDeviations[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedPersonMinima[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedPersonMaxima[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedPersonRanges[i], this.trunc));
fout.printtab(Fmath.truncate(this.standardizedPersonTotals[i], this.trunc));
for(int j=0; j<this.nItems; j++)fout.printtab(Fmath.truncate(this.standardizedScores1[i][j], this.trunc));
fout.println();
}
fout.println();
fout.println("ALL SCORES - raw data");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("minimum");
fout.printtab("maximum");
fout.printtab("range");
fout.println("overall");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println("total");
fout.printtab(Fmath.truncate(this.rawAllResponsesMean, this.trunc));
fout.printtab(Fmath.truncate(this.rawAllResponsesStandardDeviation, this.trunc));
fout.printtab(Fmath.truncate(this.rawAllResponsesMinimum, this.trunc));
fout.printtab(Fmath.truncate(this.rawAllResponsesMaximum, this.trunc));
fout.printtab(Fmath.truncate(this.rawAllResponsesRange, this.trunc));
fout.println(Fmath.truncate(this.rawAllResponsesTotal, this.trunc));
fout.println();
fout.println("ALL SCORES - standardized data");
fout.printtab("mean");
fout.printtab("standard");
fout.printtab("minimum");
fout.printtab("maximum");
fout.printtab("range");
fout.println("overall");
fout.printtab(" ");
fout.printtab("deviation");
fout.printtab(" ");
fout.printtab(" ");
fout.printtab(" ");
fout.println("total");
fout.printtab(Fmath.truncate(this.standardizedAllResponsesMean, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedAllResponsesStandardDeviation, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedAllResponsesMinimum, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedAllResponsesMaximum, this.trunc));
fout.printtab(Fmath.truncate(this.standardizedAllResponsesRange, this.trunc));
fout.println(Fmath.truncate(this.standardizedAllResponsesTotal, this.trunc));
fout.println();
// close output file
fout.close();
}