Esempio n. 1
0
        public void _handle_constant(string flag, bool hasconst)
        {
            if (flag != null)
            {
                if (hasconst)
                {
                    k_constant   = 1;
                    const_idx_fl = null;
                }
                else
                {
                    k_constant   = 0;
                    const_idx_fl = null;
                }
            }
            else if (exog != null)
            {
                const_idx_fl = null;
                k_constant   = 0;
            }
            else
            {
                // detect where the constant is
                var check_implicit = false;
                //....
                var const_idx_tmp = new numpy <int>().squeeze();

                k_constant = const_idx.Length;

                if (k_constant == 1)
                {
                    if (exog_np.sum() != 0)//....
                    {
                        const_idx = const_idx_tmp;
                    }
                    else
                    {
                        // we only have a zero column and no other constant
                        check_implicit = true;
                    }
                }
                else if (k_constant > 1)
                {
                }
                else if (k_constant == 0)
                {
                    check_implicit = true;
                }

                if (check_implicit)
                {
                }
            }
        }
Esempio n. 2
0
 public Data(double[] endog, int nan_mask, Array exog = null, int method = 1)
 {
     endog_np = new numpy <double>(endog);
     exog_np  = new numpy <double>(exog);
 }
Esempio n. 3
0
 public Data(double[] endog, Array exog = null, string missing = null, Dictionary <string, object> kwargs = null)
 {
     endog_np = new numpy <double>(endog);
     exog_np  = new numpy <double>(exog);
 }
Esempio n. 4
0
 public Data(double[] endog, Array exog = null, string missing = null, bool hasconst = false, string flag = null)
 {
     endog_np = new numpy <double>(endog);
     exog_np  = new numpy <double>(exog);
 }