Using vlmc to calculate the log likelihood of a second dataset
<p>I'm trying to use the R package VLMC to build a bayesian classifier. 
By executing:</p>

<pre><code>foo = c("a", "b", "c", "a", "b", "b", "a", "b", "c")
bar = vlmc(foo)
print(logLik(foo))
</code></pre>

<p>I am able train a model <code>bar</code> on a dataset <code>foo</code> and get the log-likelihood of the data <code>foo</code> under the model <code>bar</code>.  If I have another dataset, say <code>foobar</code>,
how can I use the vlmc package to get the log likelihood of <code>foobar</code> under the model <code>bar</code> trained on the data <code>foo</code>?</p>