Example #1
0
        //public FisherExactTest fisher { get { return _fisher; } }


        public ChiSq(DPData dpdata, List <string> vars, string subtitle)
        {
            _vars     = vars;
            _subtitle = subtitle;

            //need to select only the vars passed in
            _dt = dpdata.Data_SelectColumns(_vars, false, true);

            //ConvertData();
        }
Example #2
0
        public PCA(DPData dpdata, List <string> numvars, string method, string subtitle)
        {
            _numvars  = numvars;
            _method   = method;
            _subtitle = subtitle;

            //need to select only the vars passed in
            _dt = dpdata.Data_SelectColumns(_numvars, false, true);

            ConvertData();
        }
Example #3
0
        public List_O_PCA(DPData dpdata, List <string> numvars, string method, string groupingvar)
        {
            _pcas = new List <PCA>();
            DataSubsets subsets = new DataSubsets(dpdata.dt, numvars, groupingvar);

            foreach (DataSubset subset in subsets.subsets)
            {
                if (subset.dt != null)
                {
                    if (subset.dt.Rows.Count > 0)
                    {
                        DataTable mydt = dpdata.Data_SelectColumns(subset.dt, numvars, false, true);
                        if (mydt != null)
                        {
                            PCA pca = new PCA(mydt, numvars, method, subset.Cols_and_Vals_ToString());
                            if (pca.final_N > 0)
                            {
                                _pcas.Add(pca);
                            }
                        }
                    }
                }
            }
        }