How many lines?
How many days do you guys take to run a regression in c++?
-
Model m = new Model(t=“Linear”, vce =“robust”);
Result r = new Result();
r = m(y,X);BS. This is not valid C++ code.
which line is not valid?
It may be syntactically correct but it is not, by far, a complete program. The trouble with C++ is that there is no support for "natural" array operations. Forming the y and X inputs above will be a complete pain relative to the same operation in Stata or even Python. Even the Boost project, which is huge, does not provide a means of reading CSV or Excel files.