new_predictor {pcsstools} | R Documentation |
Create an object of class "predictor"
Description
Create an object of class "predictor"
Usage
new_predictor(
f = function() {
},
predictor_type = character(),
lb,
ub,
support
)
Arguments
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 |
Value
an object of class "predictor"
.
See Also
new_predictor_normal
,
new_predictor_snp
and new_predictor_binary
.
Examples
new_predictor(
f = function(x0) dnorm(x0, mean = 0, sd = 1),
predictor_type = "continuous", lb = -Inf, ub = Inf
)
[Package pcsstools version 0.1.2 Index]