check.result {TimeDepFrail}R Documentation

Internal function to check the structure of the model output

Description

This internal function checks if the input result object belongs to one of the expected S3 classes ('AdPaik', 'PowPar', or 'StocTimeDep') and calls the appropriate checking function based on the class.

Usage

check.result(result)

Arguments

result

S3 object. Expected to be of class 'AdPaik', 'PowPar', or 'StocTimeDep'.

Details

This function is internal and dispatches the appropriate structure-checking function based on the class of the input. Currently, it supports 'AdPaik' class. The structure-checking functions for 'PowPar' and 'StocTimeDep' are placeholders and should be implemented if needed.

Value

Throws an error if the result object does not belong to one of the expected classes, or if the object’s structure is incorrect.


[Package TimeDepFrail version 0.0.0.9 Index]