Unmolested BayesTree code from original authors.
Modifications by J.C.
Fixed indentation using astyle -t --- should have done that earlier. Added some documentation to mbart.cpp. Deleting MCMCXXX.txt files in advance to avoid appending to output files from previous invocations without overwriting. Wrote up README files summarizing our current understanding and goals.
Adding data/ and MCMCestimation/ directories to the git repository by inserting bogus README.txt files in each directory. This avoids asking the user to create these empty directories as part of the installation process. Modified the main README.txt file, mainly to clarify the installation process, and indicate the need to download first derivatives into the data/ directory. Added some documentation to Node and List classes.
Indicated in README.txt that computer should have a sufficient amont of memory to run these programs.
Some source codes are added for saving Mu value of each bottom node in files.
Removed README_not_important.txt from version control.
Description of inputs in mbart.cpp
Merge branch 'try' of themathpath.com:~/bart into try
Basic prediction function has been implemented in src_prediction directory.
Merge branch 'try' of themathpath.com:~/bart into try
Files used as input and output for the stand-alone prediction program can now be specified as command-line arguments. Some cosmetic changes. Added dyn.load(mbart.so) to bartcode_v2_101512.R so that this step can be skipped when executing mbart through R.
Added support for range correction; range bounds are supplied as a third input file. Added usage() statement. Added timing.
MCMC text files outputted by mbart.cpp now use setfill('0') so that an alphabetical ordering of the files in that directory will preserve the correct order.
1) Rewrote prediction function so that predictions are applied to all forest files which match a glob pattern. An n-by-p matrix of range-corrected predictions are then written to disk, where n is the number of variables and p is the number of forests; required implementing matrix transpose. Last two columns consist of mean and standard deviation for each row. 2) Corrected range correction function.
Moved default location of rgy.txt to MCMCresults folder.
Using verbose flag -v to suppress print statements. Recording number of trees in each forest. Printing out column headers. Returning 0 instead of 1.
Added #include <algorithm> to predict.cpp. This is needed for Linux systems but apparently not when I developed it on my Mac.
Added modes to Makefile so that -03 CFLAG is not always selected. (Too slow for development purposes.)
add codes for calculate quantiles in predict.cpp