getSelectionName.ezsim: Get Names of selection Parameters.

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/getSelectionName.ezsim.r

Description

Get names of selection parameters from an ezsim object.

Usage

1
2
## S3 method for class 'ezsim'
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

Note

For internal use of ezsim.

Author(s)

TszKin Julian Chan ctszkin@gmail.com

See Also

getSelectionName.summary.ezsim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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)

ezsim documentation built on May 1, 2019, 8:04 p.m.