The function gendat
computes for all pairs of J objects and K attributes association probabilities and it generates
association frequencies (i.e. the number of replications N
for which an object is associated to an attribute),
according to a disjunctive, conjunctive or additive probabilistic latent feature model. In addition, the function computes a matrix with in each cell
the total number of replications N
.
If the requested number of replications N
equals 0,
the function only computes association probabilities and does not generate new data.
To compute association probabilities the function gendat uses a J X F matrix of object parameters and a K X F matrix
of attribute parameters as input. The F object parameters of object j represent, for each of F features,
the probability that object j has feature f.
Similarly, the F attribute parameters of attribute k reflect, for each of F features,
the probability that attribute k is linked to feature f.
According to the disjunctive probabilistic latent feature model, object j is associated
to attribute k if the object and the attribute have at least one feature in common.
More specifically, the association probability in cell (j,k) for the disjunctive model
can be computed as:
$$p(j,k)=1-\prod_f(1-objpar[j,f]*attpar[k,f]).$$
According to the conjunctive probabilistic latent feature model, object j and attribute k
are associated if object j has all the features that are linked to attribute k.
For the conjunctive model the association probability in cell (j,k) is computed as:
$$p(j,k)=\prod_f(1-(1-objpar[j,f])*attpar[k,f]).$$
The additive mapping rule states that an object and attribute are more likely to associated if they have more common features. More specifically,
the association probability for the additive model is computed as:
$$p(j,k)= \frac{1}{F}*\sum_f (objpar[j,f])*attpar[k,f]).$$