Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/getSelectionName.summary.ezsim.r
Get names of selections parameters from an summary.ezsim object.
1 2 | ## S3 method for class 'summary.ezsim'
getSelectionName(x,simple=FALSE,parameters_priority,...)
|
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 |
Names of selection parameters.
For internal use of ezsim.
TszKin Julian Chan ctszkin@gmail.com
getSelectionName.ezsim
keywords internal
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.