An object of class
ExtendedMethod is like a
Method except it uses the output of another method in
addition to the
While one can create an
ExtendedMethod from scratch,
typically it will be cleaner to write a
and then use the addition operator:
my_extended_method = my_base_method + my_method_extension. For
my_base_method is the lasso,
might be cross-validation, and the resulting
be the lasso with tuning parameter chosen by cross-validation. The advantage
is that if we have several methods, we only have to write the
MethodExtension object once.
This class inherits from the
a short name identifier. Must be alphanumeric.
a longer, human readable label that can have other characters such as spaces, hyphens, etc.
the object of class
Method that is
a function with arguments "model", "draw", "out", and "base_method".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.