Uses as input the output object from the gpdpgrow() and gmrfdpgrow() functions.
informative_plot(
objects = NULL,
objects_labels = c("ignore", "weight"),
map = NULL,
units_name = NULL,
model = "gp",
true_star = NULL,
map_true = NULL
)A list object containing the plot of estimated functions, faceted by cluster,
and the associated data.frame object.
A ggplot2 plot object
A data.frame object used to generate p.compare.
A list of objects, either all outputs from gpdpgrow(), or all from gmrfdpgrow().
objects includes a model estimated under ignoring the informativeness of the
sampling design and another that employs weighting to account for the informativeness.
An additional object may be added to represent a separate "iid" (or non-informative)
sample from the same population, which will typically be available if the dataset
was generated as synthetic data using function, "gen_informative_sample()".
A character vector of length equal to objects that provides
labels for each entry in objects. Allowed entries in objects_labels
are c("ignore","weight","iid"), where "ignore" denotes a model that ignores
the informativeness, while "weight" denotes a model that employs sampling weights and
"iid" denotes a model run on a non-informative, iid sample from the same population.
Defaults to objects_labels = c("ignore","weight").
A list matrices, where each entry is produced
from cluster_plot(object)$map. It is comprised of
unit labels and cluster assignments for each object in objects.
The length of map must be equal to the length of objects.
The label in each "map" matrix for the observation units. Will be the same as the
units_name entry for the previously run, cluster_plot() function.
A scalar character input indicating the estimation model for all of the entries
in objects. Allowable values for model are c("gp","gmrf"). Defaults to
model = "gp".
An optional, P x M matrix, of true parameter location values, where
P denotes the number of parameters per cluster and M denotes the number of
clusters. For example, in model = "gp" with a single, rational quadratic covariance,
P = 3 and if there are 3 clusters, then M = 3. For a model = "gmrf",
with a single covariance, P = 1.
An optional data.frame object with n rows, the size of the
informative sample used for c("ignore","weight") objects that maps the
units_name to a true cluster. map_true must have 2 columns (and the
rest are ignored), one must be named the same value as input for units_name.
The second column must be named, cluster. If the true values derive
from running gen_informative_sample() as the source of the true values,
one may just input the map_obs data.frame that is listed in the object
returned by gen_informative_sample().
Terrance Savitsky tds151@gmail.com
gpdpgrow, gmrfdpgrow