Calculate distance b/w cont table row and pums
1 | calc_dists(pums, table_row, alpha, k, marginals)
|
pums |
dataframe with marginal columns |
table_row |
row of table to calculate distance |
alpha |
number between 0 and 1, weight of categorical variables |
k |
number between 0 and 1, weight of orginal variables |
marginals |
list with marginal data |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.