ValidatePanelDesign {spbal} | R Documentation |
Validate the panels and panel_overlap parameters.
Description
This function is used to validate the panels and panel_overlap parameters. The panel_design flag is set TRUE when the panels and/or panel_overlap parameters are not NULL. This is an internal only function.
Usage
ValidatePanelDesign(panels, panel_overlap, n)
Arguments
panels |
A list of integers that define the size of each panel in a non-overlapping panels design. The length of the list determines the number of panels required. The sum of the integers in the panels parameter will determine the total number of samples selected, n. The default value for panels is NULL, this indicates that a non-overlapping panel design is not wanted. |
panel_overlap |
A list of integers that define the overlap into the previous panel. It is only used when the panels parameter is not NULL. The default value for panel_overlap is NULL. The length of panel_overlap must be equal to the length of panels. The first value is always forced to zero as the first panel never overlaps any region. |
n |
The number of samples required. Only used when panels and panel_overlap are NULL. |
Value
A list containing four variables, they are detailed below.
-
n
When thepanels
parameter is not null, then
parameter is set using the sum of all the panel sizes inpanels
. -
panel_design
A boolean, TRUE, indicates that the user wants a panels design. -
number_panels
The number of panels specified in the panel design. -
panel_overlap
Updated panel_overlap vector, the first element is always forced to zero irrespective of what the user specified.
Author(s)
Phil Davies.