Description Usage Arguments Details Value Examples
View source: R/FHme_nonsamples.R
This function gives the EBLUP estimator of nonsampled area using cluster information.
1 2 3 4 5 6 7 8 9 10 11  FHme_nonsamples(
formula,
var.x,
vardir,
type.x = "witherror",
MAXITER = 100,
PRECISION = 1e04,
cluster.method = "kmeans",
n.cluster,
data
)

formula 
an object of class 
var.x 
vector containing mean squared error of 
vardir 
vector containing the 
type.x 
type of auxiliary variable used in the model. Either source measured with 
MAXITER 
maximum number of iterations allowed. Default value is 
PRECISION 
convergence tolerance limit. Default value is 
cluster.method 
the cluster method used. Default value is 
n.cluster 
either the number of clusters, say 
data 
a data frame containing the variables named in formula, vardir, and var.x. 
A formula has an implied intercept term. To remove this use either y ~ x  1 or y ~ 0 + x. See formula
for more details of allowed formulae.
The function returns a list with the following objects:
nonsampled_data
a data frame of nonsampled areas containing data
, the cluster information (cluster
) and mean of random effect for each cluster (refmean
).
sampled_data
a data frame of sampled areas containing data
, the cluster information (cluster
) and mean of random effect for each cluster (refmean
).
result_sampled
a list containing following objects:
eblup
: vector with the values of the estimators for the sampled areas.
fit
: a list of method
, convergence
, iterations
, estcoef
, refvar
, and gamma
. For the description of these objects, see Value of FHme function.
ref
: values of the random effect for each area.
result_nonsampled
a list containing following objects:
eblup
: vector with the values of the estimators for the nonsampled areas.
estcoef
: a data frame with the estimated model coefficient (beta
) in the first column, their standard error (std.error
) in the second column, the tstatistics (t.statistics
) in the third column, and the pvalues of the significance of each coefficient (pvalue
) in the last column.
mse_sample
a list containing the values of mse
a vector with the estimated mean squared errors of the EBLUPs for the sampled areas.
mse_nonsample
a list containing the values of mse
a vector with the estimated mean squared errors of the EBLUPs for the nonsampled areas.
cluster
a data frame with the cluster information (cluster
) in the first column and mean of random effects for each cluster (refmean
) in the second column.
1 2 3 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.