Learn R Programming

ezsim (version 0.5.5)

getSelectionName.summary.ezsim: Get Names of selection Parameters.

Description

Get names of selections parameters from an summary.ezsim object.

Usage

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

Arguments

x
an summary.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

Names of selection parameters.

See Also

getSelectionName.ezsim keywords internal

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