pdf_marginalize: Marginalizes a multivariate pdf

Description Usage Arguments Value

Description

Marginalizes a multivariate pdf

Usage

1
pdf_marginalize(df_pdf_mv, colName_var, colName_pdf, normalize = T)

Arguments

df_pdf_mv

the dataframe containing the multivariate pdf, with variable values and pdf values

colName_var

the variable for which to calculate the marginalized pdf

colName_pdf

the column containing the actual pdf value

normalize

boolean indicating whether to normalize the marginal pdf

Value

a dataframe correponding to the marginalized pdf


kcucchi/HZinv documentation built on May 30, 2019, 6:57 p.m.