Learn R Programming

ezsim (version 0.5.5)

getSelectionName.ezsim: Get Names of selection Parameters.

Description

Get names of selection parameters from an ezsim object.

Usage

"getSelectionName"(x,simple=FALSE,parameters_priority,...)

Arguments

x
an ezsim object
simple
If true, return only the name of selection parameters. If False, split the selection into two groups, one with fixed value, one with varied value. Also, subtitle is returned.
parameters_priority
Priority in sorting parameters.
...
unused

Value

selection_length_greater_one
Name of selection parameters with more than one elements
selection_length_one
Name of selection parameters with only one element
subtitle
subtitle for fixed selection parameters

See Also

getSelectionName.summary.ezsim

Examples

Run this code
## Not run: 
# ezsim_basic<-ezsim(
#     m             = 100,
#     run           = TRUE,
#     display_name  = c(mean_hat="hat(mu)",sd_mean_hat="hat(sigma[hat(mu)])"),
#     parameter_def = createParDef(list(n=seq(20,80,20),mu=c(0,2),sigma=c(1,3,5))),
#     dgp           = function() rnorm(n,mu,sigma),
#     estimator     = function(x) c(mean_hat = mean(x),
#                                  sd_mean_hat=sd(x)/sqrt(length(x)-1)),
#     true_value    = function() c(mu, sigma / sqrt(n-1))
# )
# 
# getSelectionName(ezsim_basic)
# getSelectionName(summary(ezsim_basic))
# ## End(Not run)

Run the code above in your browser using DataLab