wrote predict.RandomGov method for S3 class, and predictRandGov_c functionality for classification. calcMostPopularPrediction has been written to process committee results and corresponding tests are available.
wrote tests for calcMostPopularPrediction.
updated spec for RandomGov object and made attribute validation tests in test-randomGov.R.
modified checkEstParams_c in build to include responseLevels attribute in RandomGov object. Made explicit tests for this in test-buildRandomGov.R.
fixed a few typos in RandomGov output validation tests.
fixed typo in RandomGov constructor so tha being-built randomGov object is now passed to predict.RandomGov.
moved a lot of code inside relevant tests in test-predictRandomGov to ensure no external dependencies.
changed signature of predictRandomGov_x to take full RandomGov object as argument. Wrote processComPredictions_c function.