View source: R/bootstrap_functions.R
BS_global_factor | R Documentation |
This function employs a bootstrap procedure to obtain confidence intervals
for the global factors at time t
.
BS_global_factor(object, t, BB = 599, alpha = 0.05)
object |
An S3 object of class 'multi_result' created by multilevel(). |
t |
An integer specifying the time point at which the CI is constructed. |
BB |
An integer indicating the number of bootstrap repetition. 599 by default. |
alpha |
The significance level, a single numeric between 0 and 1. 0.05 by default. |
A matrix containing the upper and lower band.
panel <- UKhouse # load the data
est_multi <- multilevel(panel, ic = "BIC3", standarise = TRUE, r_max = 5,
depvar_header = "dlPrice", i_header = "Region",
j_header = "LPA_Type", t_header = "Date")
bs_global_mid <- BS_global_factor(est_multi, t = est_multi$T / 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.