draw8predi: returns the predicted individual for an empidata node.

Description Usage Arguments Details Value Examples

Description

(dn) returns the predicted individual for an empidata node when they must be drawn individually. The description of the algorithm is given into the /rebastaba/ manual. The prediction is monitored by the /win/.

Usage

1
draw8predi(ind, EE, win, nat)

Arguments

ind

Value of the individual to predict (one row data.frame and only the variables associated to parents) .

EE

data.frame with the candidates in its rows.

win

the /win/ to be used for the selection process.

nat

nature of the ind variables (named character).

Details

Not all the checks are performed

Value

a one-row data.frame returning the predicted individual (with rebastaba.ena[1] computed if asked).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 rebastaba3k("RESET"); # to comply R checking
 EE <- data.frame(A=1:100, c=100:1); # the empirical distribution
 win <- new("win", nat=structure("conti", .Names="c"), swg=structure(1, .Names="A"), skk=0, sdi=c(0, 1), snb=c(1, 20));
 draw8predi(data.frame(A=20), EE, win, structure("conti", .Names="A"));
 win2 <- new("win", nat=structure("conti", .Names="c"), swg=structure(1, .Names="A"), skk=0, 
 sdi=c(0, 10), snb=c(1, 20), rty=c("*", "quantile"), rk2=0.5);
 draw8predi(data.frame(A=20), EE, win2, structure("conti", .Names="A"));
 win3 <- new("win", nat=structure("conti", .Names="c"), swg=structure(1, .Names="A"), skk=0, sdi=c(0, 10), snb=c(1, 20), 
 rty=c("0", "stdev"));
 draw8predi(data.frame(A=20), EE, win3, structure("conti", .Names="A"));

rebastaba documentation built on May 2, 2019, 5:24 p.m.