<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://nd.psychstat.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://nd.psychstat.org/feed.php">
        <title>@ND - codes</title>
        <description></description>
        <link>https://nd.psychstat.org/</link>
        <image rdf:resource="https://nd.psychstat.org/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-05-28T08:27:16+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://nd.psychstat.org/codes/basic_mdp_r_code"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/codes/mdp_regression_r_code"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/codes/modified_basic_mdp_r_code"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/codes/more_modified_basic_r_code"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://nd.psychstat.org/_media/wiki/dokuwiki.svg">
        <title>@ND</title>
        <link>https://nd.psychstat.org/</link>
        <url>https://nd.psychstat.org/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://nd.psychstat.org/codes/basic_mdp_r_code">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-24T14:48:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>basic_mdp_r_code</title>
        <link>https://nd.psychstat.org/codes/basic_mdp_r_code</link>
        <description>################################################################
# Code to fit a basic MDP model
#
# Be warned that this is bad code.  I&#039;ve tried to keep the code
# understandable, rather than efficient.  
################################################################


################################################################
#
# Part 1.  A description of the model
#
# The model is a conjugate, normal-normal model
# Variances are treated as known throughout
#
#  The model is the basic …</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/codes/mdp_regression_r_code">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-24T14:48:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mdp_regression_r_code</title>
        <link>https://nd.psychstat.org/codes/mdp_regression_r_code</link>
        <description># Supplement to MDP code for regression modelling.  

# Code relies on the MASS library 

# The model to be fit with the code below is a 
#  traditional linear regression model, with one
#  exception.  The errors are presumed to follow 
#  an &quot;arbitrary&quot; continuous distribution.  The
#  prior over this distribution is an MDP model.  
#  Note that the parameter sigma^2 is not the 
#  usual residual variance.  Also, one must be 
#  careful in interpretation of &quot;beta_0&quot;.  The 
#  value of the mean …</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/codes/modified_basic_mdp_r_code">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-24T14:48:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>modified_basic_mdp_r_code</title>
        <link>https://nd.psychstat.org/codes/modified_basic_mdp_r_code</link>
        <description>################################################################
# 
# Function 2.  A function to generate theta_i for the cluster 
#              structure
#
# Tasks:  Compute probabilities of joining cluster, beginning
#           new cluster
#         Generate cluster membership
#         Update s and n_i
#         Update k and theta_star if needed
#
################################################################

fn.gen.theta.i.2 &lt;- function(i,clust,prior,mu,data)
{
 n.i &lt;- clust$n.i
 theta.…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/codes/more_modified_basic_r_code">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-24T14:48:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>more_modified_basic_r_code</title>
        <link>https://nd.psychstat.org/codes/more_modified_basic_r_code</link>
        <description># Modification of MDP code to study mixing at a more basic level

# First, a Gibbs sampler without the remixing step.  If this sampler
#  is run with a large value of M (so that there are nearly as many
#  clusters as observations in the data set, mixing is nearly as good
#  as with the sampler with the remixing step.  If the value of M
#  is relatively small, there are lots of &quot;repeats&quot;, as clusters don&#039;t
#  often move.  This behavior is not uniform across the cases in the 
#  data set, but dep…</description>
    </item>
</rdf:RDF>
