Lists all possible mean functions of given class.
mean_functions(mean_fun = NULL, mean_class = NULL)
Vector of mean function(s).
String that indicates the class of mean functions to list. Possible values are:
Constant and uniform mean functions.
Main mean functions.
Special cases of main mean functions.
All mean functions.
Vector of mean functions of given class.
If no arguments are supplied, return a data frame listing all possible mean functions with corresponding classes; if a vector of classes is supplied, return corresponding mean functions; if a vector of mean functions is supplied, return corresponding classes.
## Print data frame of all mean functions with corresponding classes
mean_functions()
#> mean_fun mean_class
#> 1 constant test
#> 2 uniform test
#> 3 beta main
#> 4 sech main
#> 5 modskurt main
#> 6 gaussian main
#> 7 mixgaussian main
#> 8 hofV main
#> 9 sech.p1 sub
#> 10 sech.r0p1 sub
#> 11 mixgaussian.equal sub
#> 12 hofII sub
#> 13 hofIV sub
#> 14 hofIVb sub
#> 15 hofVb sub
## Constant and uniform mean functions to test code
mean_functions(mean_class="test")
#> [1] "constant" "uniform"
## Main mean functions
mean_functions(mean_class="main")
#> [1] "beta" "sech" "modskurt" "gaussian" "mixgaussian"
#> [6] "hofV"
## Classes of given mean functions
mean_functions(mean_fun=c("beta", "hofIV"))
#> [1] "main" "sub"