Example #1
0
        public void InitializeStatCalc()
        {
            strataVals = new Dictionary <int, double[]>();
            strataVals.Add(1, new double[4]);
            strataVals.Add(2, new double[4]);
            strataVals.Add(3, new double[4]);
            strataVals.Add(4, new double[4]);
            strataVals.Add(5, new double[4]);
            strataVals.Add(6, new double[4]);
            strataVals.Add(7, new double[4]);
            strataVals.Add(8, new double[4]);
            strataVals.Add(9, new double[4]);

            strataActive = new Dictionary <int, bool[]>();
            strataActive.Add(1, new Boolean[4]);
            strataActive.Add(2, new Boolean[4]);
            strataActive.Add(3, new Boolean[4]);
            strataActive.Add(4, new Boolean[4]);
            strataActive.Add(5, new Boolean[4]);
            strataActive.Add(6, new Boolean[4]);
            strataActive.Add(7, new Boolean[4]);
            strataActive.Add(8, new Boolean[4]);
            strataActive.Add(9, new Boolean[4]);

            resultsList               = new List <MyString>();
            statCalcDtoObject         = new StatCalcDTO();
            currentSingleTableResults = new MySingleTableResults();

            //return "";
        }
Example #2
0
        private MySingleTableResults ConvertSingleTableResultToLocal(StatisticsRepository.cTable.SingleTableResults stResults)
        {
            MySingleTableResults mystResults = new MySingleTableResults();

            mystResults.ChiSquareMantel2P       = stResults.ChiSquareMantel2P;
            mystResults.ChiSquareMantel2P       = stResults.ChiSquareMantel2P;
            mystResults.ChiSquareMantelVal      = stResults.ChiSquareMantelVal;
            mystResults.ChiSquareUncorrected2P  = stResults.ChiSquareUncorrected2P;
            mystResults.ChiSquareUncorrectedVal = stResults.ChiSquareUncorrectedVal;
            mystResults.ChiSquareYates2P        = stResults.ChiSquareYates2P;
            mystResults.ChiSquareYatesVal       = stResults.ChiSquareYatesVal;
            mystResults.ErrorMessage            = stResults.ErrorMessage;
            mystResults.FisherExact2P           = stResults.FisherExact2P;
            mystResults.FisherExactP            = stResults.FisherExactP;
            mystResults.MidP = stResults.MidP;
            mystResults.OddsRatioEstimate       = stResults.OddsRatioEstimate;
            mystResults.OddsRatioLower          = stResults.OddsRatioLower;
            mystResults.OddsRatioMLEEstimate    = stResults.OddsRatioMLEEstimate;
            mystResults.OddsRatioMLEFisherLower = stResults.OddsRatioMLEFisherLower;
            mystResults.OddsRatioMLEFisherUpper = stResults.OddsRatioMLEFisherUpper;
            mystResults.OddsRatioMLEMidPLower   = stResults.OddsRatioMLEMidPLower;
            mystResults.OddsRatioMLEMidPUpper   = stResults.OddsRatioMLEMidPUpper;
            mystResults.OddsRatioUpper          = stResults.OddsRatioUpper;
            mystResults.RiskDifferenceEstimate  = stResults.RiskDifferenceEstimate;
            mystResults.RiskDifferenceLower     = stResults.RiskDifferenceLower;
            mystResults.RiskDifferenceUpper     = stResults.RiskDifferenceUpper;
            mystResults.RiskRatioEstimate       = stResults.RiskRatioEstimate;
            mystResults.RiskRatioLower          = stResults.RiskRatioLower;
            mystResults.RiskRatioUpper          = stResults.RiskRatioUpper;

            return(mystResults);
        }