getSelectionName.summary.ezsim {ezsim}R Documentation

Get Names of selection Parameters.

Description

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

Usage

## S3 method for class 'summary.ezsim'
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.

Note

For internal use of ezsim.

Author(s)

TszKin Julian Chan ctszkin@gmail.com

See Also

getSelectionName.ezsim keywords internal

Examples

## 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)

[Package ezsim version 0.5.5 Index]