Panel | R Documentation |
rho=0
This function is implemented to variable of interest ydi
Panel( formula, area, period, vardir, iter.update = 3, iter.mcmc = 2000, thin = 1, burn.in = 1000, tau.e = 1, tau.v = 1, data )
formula |
Formula that describe the fitted model |
area |
Number of areas (domain) of the data |
period |
Number of periods (subdomains) for each area of the data |
vardir |
Sampling variances of direct estimations |
iter.update |
Number of updates with default |
iter.mcmc |
Number of total iterations per chain with default |
thin |
Thinning rate, must be a positive integer with default |
burn.in |
Number of iterations to discard at the beginning with default |
tau.e |
Variance of area-by-time effect of variable interest with default |
tau.v |
Variance of random area effect of variable interest with default |
data |
The data frame |
This function returns a list of the following objects:
Est |
A vector with the values of Small Area mean Estimates using Hierarchical bayesian method |
refVar |
Estimated random effect variances |
coef |
A dataframe with the estimated model coefficient |
plot |
Trace, Density, Autocorrelation Function Plot of MCMC samples |
##For data without any non-sampled area data(dataPanel) # Load dataset formula = ydi ~ xdi1 + xdi2 area = max(dataPanel[, "area"]) period = max(dataPanel[,"period"]) vardir = dataPanel[,"vardir"] result <- Panel(formula, area, period, vardir, data = dataPanel) result$Est result$refVar result$coef result$plot ## For data with non-sampled area use dataPanelNs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.