This should work for any unmarked fitting function. A general design idea is a master nonparboot function that requires each fitting function provide:
A resample function to properly resample the data
A fitting function that properly assembles calls to the fitting function
An extractor function that pulls out the desired stats
The master nonparboot function should then do the right thing with these bootstrap samples.
nonparboot should take a fit object and return the fit object with standard error and associated stats modified and also additional bootstrap stats (maybe just num. iterations and raw b.s. stats?) tacked on. We should create a new class for these fit objects and the results should inherit from both these and the original fit class.
This should work for any unmarked fitting function. A general design idea is a master nonparboot function that requires each fitting function provide:
The master nonparboot function should then do the right thing with these bootstrap samples.
nonparboot should take a fit object and return the fit object with standard error and associated stats modified and also additional bootstrap stats (maybe just num. iterations and raw b.s. stats?) tacked on. We should create a new class for these fit objects and the results should inherit from both these and the original fit class.