int main ()
{
int numobs //number of observations
// statement a<numobs<b, then c<numobs<d -> a<b<c<d
funct();
return 0;
}
So want to split up numobs in pieces and to use each piece as an input for the same function(s), but I do not know which is the appropriate statement...
I use txt file with data which I use for estimation of a model and each line in the the text file is an observation.
numobs is a variable (integer) which stays for the number of the lines in the text file.
Now I can do the estimation by using all the observations, but I would like also to do estimations with smaller number of observations and I am wondering how to do this.
Let's assume the text file contains 100 lines (observations). I would like to do estimation with the first 10 lines (observations), then with the second 10 lines and so on...
The code in my first post was actually supposed to illustrate only the structure of the program.