View source: R/predictor_class.R
new_predictor | R Documentation |
Create an object of class "predictor"
new_predictor(
f = function() {
},
predictor_type = character(),
lb,
ub,
support
)
f |
a function that gives the probability mass/distribution function of a random variable. |
predictor_type |
a character describing the random variable. Either "discrete" or "continuous". |
lb , ub |
if |
support |
if |
an object of class "predictor"
.
new_predictor_normal
,
new_predictor_snp
and new_predictor_binary
.
new_predictor(
f = function(x0) dnorm(x0, mean = 0, sd = 1),
predictor_type = "continuous", lb = -Inf, ub = Inf
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.