Description Usage Arguments Value
View source: R/preprocess_function.R
condExpectation
computes the conditional expectation of X given y with
a slicing approach.
1 | condExpectation(data, y, H, scale = TRUE)
|
data |
List; The list of tables to study. |
y |
A numerical variable of interest. |
H |
Integer; The number of slices to cut y. |
scale |
Logicial; Should the data be scaled by the Frobenius norm of the covariance matrix (TRUE) or not (FALSE)? Default is TRUE. |
a list consisting of
pdata the conditional expectations of X given y (list of lenght T)
weights the number of observations in every slides
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.