<?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 - lab</title>
        <description></description>
        <link>https://nd.psychstat.org/</link>
        <image rdf:resource="https://nd.psychstat.org/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-04-20T15:34:35+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/blog"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/bootmedem"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/bootstrap_ci"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/bootstrap_em_for_mediation_model"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/data"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/download_bootmedem_and_document"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/em_fiml"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/em_for_mediation_for_monents"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/em_for_mediation_model_with_means"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/em_for_mediation_model"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/em_for_the_simple_regression"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/exploratory_data_analysis"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/final_for_simulation"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/higer--order_invariance"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/index"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/mediation_model_maple_codes"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/nonparametric_bayesian"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/note_on_using_visual_c_2008"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/old_1"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/proc_mi"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/process_results"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/r_codes_for_simulation_study_in_experiment_4"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/r_codes_to_process_the_results_from_mplus_for_table_1_2"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/r_codes_to_process_the_results_from_mplus_for_table_3"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/task"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/test_winbugs"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/use_of_server"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/useful_things"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/using_winbugs_on_the_notre_dame_clusters"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/v1_on_nov_22_2008"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/v1_on_nov_23_2008"/>
                <rdf:li rdf:resource="https://nd.psychstat.org/lab/zhang"/>
            </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/lab/blog">
        <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>blog</title>
        <link>https://nd.psychstat.org/lab/blog</link>
        <description></description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/bootmedem">
        <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>bootmedem</title>
        <link>https://nd.psychstat.org/lab/bootmedem</link>
        <description>V1 on Nov 22, 2008

V1 on Nov 23, 2008</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/bootstrap_ci">
        <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>bootstrap_ci</title>
        <link>https://nd.psychstat.org/lab/bootstrap_ci</link>
        <description>## EM for the estimate the covariance matrix

## function to calculate the parameters
par.est&lt;-function(pM, pS){
  sX2&lt;-pS[1,1]
  sM2&lt;-pS[2,2]
  sY2&lt;-pS[3,3]
  sXM&lt;-pS[1,2]
  sXY&lt;-pS[1,3]
  sMY&lt;-pS[2,3]
  mX &lt;-pM[1]
  mM &lt;-pM[2]
  mY &lt;-pM[3]

  pa&lt;-sXM/sX2
  pb&lt;-(sMY*sX2-sXM*sXY)/(sX2*sM2-sXM^2)
  pc&lt;-(sXY*sM2-sXM*sMY)/(sX2*sM2-sXM^2)
  ps1&lt;-sX2
  ps2&lt;-sM2-sXM^2/sX2
  ps3&lt;-(sX2*sM2*sY2-sX2*sMY^2-sM2*sXY^2-sY2*sXM^2+2*sXM*sXY*sMY)/(sX2*sM2-sXM^2)

  pm1&lt;-mX
  pm2&lt;-mM - pa*mX
  pm3&lt;-mY - pb*mM - p…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/bootstrap_em_for_mediation_model">
        <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>bootstrap_em_for_mediation_model</title>
        <link>https://nd.psychstat.org/lab/bootstrap_em_for_mediation_model</link>
        <description>bootstrap CI

old 1

final for simulation

Process results

Data</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/data">
        <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>data</title>
        <link>https://nd.psychstat.org/lab/data</link>
        <description>Data set 1

Age -- Reasoning -- EPT


89 14 99999
78 15 99999
77 31 99999
93 99999 99999
79 99999 99999
80 99999 3
82 99999 4
76 99999 7
68 99999 7
85 99999 9
77 99999 9
85 99999 11
73 99999 12
85 99999 13
71 99999 13
94 99999 15
85 99999 17
69 16 26
69 30 23
79 40 14
73 15 13
78 21 16
69 27 13
72 24 22
81 20 13
79 6 17
78 17 23
75 17 14
84 39 23
76 24 27
71 27 20
79 12 13
66 10 9
73 35 27
68 32 22
81 14 18
81 7 15
86 22 22
86 21 16
72 11 20
78 13 11
65 32 25
77 19 18
72 25 15
71 45 28
74 44 23
…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/download_bootmedem_and_document">
        <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>download_bootmedem_and_document</title>
        <link>https://nd.psychstat.org/lab/download_bootmedem_and_document</link>
        <description>BMEM

Download

The program can be downloaded here [download]. The BMEM manual can be download here [Manual]. 

Document

Background

The program deals with a mediation model specified as
&lt;jsmath&gt;M = iM + aX + e_1&lt;/jsmath&gt;
&lt;jsmath&gt;Y = iY + bM + cX + e_2&lt;/jsmath&gt;
where &lt;jsm&gt;X&lt;/jsm&gt;, &lt;jsm&gt;M&lt;/jsm&gt;, and &lt;jsm&gt;Y&lt;/jsm&gt; are input, mediator, and output variables.</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/em_fiml">
        <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>em_fiml</title>
        <link>https://nd.psychstat.org/lab/em_fiml</link>
        <description>ML methods are based on the assumption that the missingness mechanism is at least
MAR, but not necessarily MCAR; on the other hand, it is assumed that the data are
normally distributed.
Non-Bayesian methods--maximum likelihood (ML) approach with the EM algorithm
The formulation of the EM algorithm made it feasible to compute ML estimates in many missing-data problems. EM algorithm may be used for maximum likelihood estimation. The EM algorithm is a method for obtaining maximum likelihood estimat…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/em_for_mediation_for_monents">
        <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>em_for_mediation_for_monents</title>
        <link>https://nd.psychstat.org/lab/em_for_mediation_for_monents</link>
        <description>## EM for the estimate the covariance matrix

## function to calculate the parameters
par.est&lt;-function(pM, pS){
  sX2&lt;-pS[1,1]
  sM2&lt;-pS[2,2]
  sY2&lt;-pS[3,3]
  sXM&lt;-pS[1,2]
  sXY&lt;-pS[1,3]
  sMY&lt;-pS[2,3]
  mX &lt;-pM[1]
  mM &lt;-pM[2]
  mY &lt;-pM[3]

  pa&lt;-sXM/sX2
  pb&lt;-(sMY*sX2-sXM*sXY)/(sX2*sM2-sXM^2)
  pc&lt;-(sXY*sM2-sXM*sMY)/(sX2*sM2-sXM^2)
  ps1&lt;-sX2
  ps2&lt;-sM2-sXM^2/sX2
  ps3&lt;-(sX2*sM2*sY2-sX2*sMY^2-sM2*sXY^2-sY2*sXM^2+2*sXM*sXY*sMY)/(sX2*sM2-sXM^2)

  pm1&lt;-mX
  pm2&lt;-mM - pa*mX
  pm3&lt;-mY - pb*mM - p…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/em_for_mediation_model_with_means">
        <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>em_for_mediation_model_with_means</title>
        <link>https://nd.psychstat.org/lab/em_for_mediation_model_with_means</link>
        <description>## EM for the mediation model

## function to calculate the parameters
est&lt;-function(S){
  sX2&lt;-S[1]
  sM2&lt;-S[2]
  sY2&lt;-S[3]
  sXM&lt;-S[4]
  sXY&lt;-S[5]
  sMY&lt;-S[6]
  mX &lt;-S[7]
  mM &lt;-S[8]
  mY &lt;-S[9]

  pa&lt;-sXM/sX2
  pb&lt;-(sMY*sX2-sXM*sXY)/(sX2*sM2-sXM^2)
  pc&lt;-(sXY*sM2-sXM*sMY)/(sX2*sM2-sXM^2)
  ps1&lt;-sX2
  ps2&lt;-sM2-sXM^2/sX2
  ps3&lt;-(sX2*sM2*sY2-sX2*sMY^2-sM2*sXY^2-sY2*sXM^2+2*sXM*sXY*sMY)/(sX2*sM2-sXM^2)

  pm1&lt;-mX
  pm2&lt;-mM - pa*mX
  pm3&lt;-mY - pb*mM - pc*mX



  return(c(pa,pb,pc,ps1,ps2,ps3,pm1,p…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/em_for_mediation_model">
        <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>em_for_mediation_model</title>
        <link>https://nd.psychstat.org/lab/em_for_mediation_model</link>
        <description>## EM for the mediation model

## function to calculate the parameters
est&lt;-function(S){
  sX2&lt;-S[1]
  sM2&lt;-S[2]
  sY2&lt;-S[3]
  sXM&lt;-S[4]
  sXY&lt;-S[5]
  sMY&lt;-S[6]

  pa&lt;-sXM/sX2
  pb&lt;-(sMY*sX2-sXM*sXY)/(sX2*sM2-sXM^2)
  pc&lt;-(sXY*sM2-sXM*sMY)/(sX2*sM2-sXM^2)
  ps1&lt;-sX2
  ps2&lt;-sM2-sXM^2/sX2
  ps3&lt;-(sX2*sM2*sY2-sX2*sMY^2-sM2*sXY^2-sY2*sXM^2+2*sXM*sXY*sMY)/(sX2*sM2-sXM^2)
  return(c(pa,pb,pc,ps1,ps2,ps3))
}


## expectation step
EMe&lt;-function(data, para){
  X&lt;-data[,1]
  Y&lt;-data[,3]
  M&lt;-data[,2]

  p…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/em_for_the_simple_regression">
        <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>em_for_the_simple_regression</title>
        <link>https://nd.psychstat.org/lab/em_for_the_simple_regression</link>
        <description>## EM for simple regression

## data

x&lt;-rnorm(100)
y&lt;-x+.5*rnorm(100)

summary(lm(y~x-1))

y[91:100]&lt;-NA

a0&lt;-1
s0&lt;-.5

e&lt;-1

while (e&gt;.00001){

sx&lt;-sum(x^2)
sy&lt;-sum(y[1:90]^2)+a0^2*sum(x[91:100]^2)+10*s0
sxy&lt;-sum(x[1:90]*y[1:90])+a0*sum(x[91:100]^2)

a&lt;-sxy/sx
s&lt;-(sx*sy-sxy^2)/(sx^2)

e&lt;-(a0-a)^2+(s0-s)^2

a0&lt;-a
s0&lt;-s
}</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/exploratory_data_analysis">
        <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>exploratory_data_analysis</title>
        <link>https://nd.psychstat.org/lab/exploratory_data_analysis</link>
        <description>&lt;http://duncanjg.wordpress.com/2008/11/21/draft-beginners-r-course/&gt;</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/final_for_simulation">
        <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>final_for_simulation</title>
        <link>https://nd.psychstat.org/lab/final_for_simulation</link>
        <description>## EM for the estimate the covariance matrix

## function to calculate the parameters
par.est&lt;-function(pM, pS){
  sX2&lt;-pS[1,1]
  sM2&lt;-pS[2,2]
  sY2&lt;-pS[3,3]
  sXM&lt;-pS[1,2]
  sXY&lt;-pS[1,3]
  sMY&lt;-pS[2,3]
  mX &lt;-pM[1]
  mM &lt;-pM[2]
  mY &lt;-pM[3]

  pa&lt;-sXM/sX2
  pb&lt;-(sMY*sX2-sXM*sXY)/(sX2*sM2-sXM^2)
  pc&lt;-(sXY*sM2-sXM*sMY)/(sX2*sM2-sXM^2)
  ps1&lt;-sX2
  ps2&lt;-sM2-sXM^2/sX2
  ps3&lt;-(sX2*sM2*sY2-sX2*sMY^2-sM2*sXY^2-sY2*sXM^2+2*sXM*sXY*sMY)/(sX2*sM2-sXM^2)

  pm1&lt;-mX
  pm2&lt;-mM - pa*mX
  pm3&lt;-mY - pb*mM - p…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/higer--order_invariance">
        <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>higer--order_invariance</title>
        <link>https://nd.psychstat.org/lab/higer--order_invariance</link>
        <description>Programs

Dec 17, 2008

R codes to process the results from Mplus for Table 1 &amp; 2

R codes to process the results from Mplus for Table 3

R codes for simulation study in Experiment 4</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/index">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-07T18:15:53+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>index</title>
        <link>https://nd.psychstat.org/lab/index</link>
        <description>Lab meetings

Meeting schedules

People

	*  Johnny Zhang
	*  Peggy Wang
	*  Xin Tong
	*  Haiyan Liu
	*  Qian Zhang
	*  Han Du
	*  Charlotte Cunningham

Classes

	*  Advanced stats

On-going projects

	*  Bayesian differential equations
	*  Bayesian differential equations by Johnny, Xin, Laura
	*  Growth curve modeling with MNAR data by Johnny, Xin
	*  Bayesian analysis using SAS by Johnny
	*  Bayesian latent change score model by Johnny, Kevin Grimm
	*  Using Wishart prior distribution in Bayes…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/mediation_model_maple_codes">
        <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>mediation_model_maple_codes</title>
        <link>https://nd.psychstat.org/lab/mediation_model_maple_codes</link>
        <description>Iden := Matrix(3, 3, {(1, 1) = 1, (1, 2) = 0, (1, 3) = 0, (2, 1) = 0, (2, 2) = 1, (2, 3) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = 1})

A := Matrix(3, 3, {(1, 1) = 0, (1, 2) = 0, (1, 3) = 0, (2, 1) = a, (2, 2) = 0, (2, 3) = 0, (3, 1) = c, (3, 2) = b, (3, 3) = 0})

S := Matrix(3, 3, {(1, 1) = sigma[1]^2, (1, 2) = 0, (1, 3) = 0, (2, 1) = 0, (2, 2) = sigma[2]^2, (2, 3) = 0, (3, 1) = 0, (3, 2) = 0, (3, 3) = sigma[3]^2})

with(linalg):

omega := multiply(multiply(inverse(Iden-A), S), transpose(inverse(Id…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/nonparametric_bayesian">
        <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>nonparametric_bayesian</title>
        <link>https://nd.psychstat.org/lab/nonparametric_bayesian</link>
        <description>STAT 882: Nonparametric Bayesian Inference

Winter Quarter 2009

----------


^Instructors:| |Steve MacEachern.  | |office Hours: Friday 9:30 - 10:30am in 205C Cockins Hall, and by appointment|
  Xinyi Xu.   office Hours: Tuesday 9:30 - 10:30am in 440G Cockins Hall, and by appointment

^Lecture Hours &amp; Location:</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/note_on_using_visual_c_2008">
        <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>note_on_using_visual_c_2008</title>
        <link>https://nd.psychstat.org/lab/note_on_using_visual_c_2008</link>
        <description>To add the library

Go to Project -- Properties -- Configuration -- Linker --  Input -- Type in Additional dependencies (the lib names: newran03.lib)

Configuration -- Linker  -- general -- Additional library directories -- type in the path to the library</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/old_1">
        <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>old_1</title>
        <link>https://nd.psychstat.org/lab/old_1</link>
        <description>## EM for the estimate the covariance matrix

## function to calculate the parameters
par.est&lt;-function(pM, pS){
  sX2&lt;-pS[1,1]
  sM2&lt;-pS[2,2]
  sY2&lt;-pS[3,3]
  sXM&lt;-pS[1,2]
  sXY&lt;-pS[1,3]
  sMY&lt;-pS[2,3]
  mX &lt;-pM[1]
  mM &lt;-pM[2]
  mY &lt;-pM[3]

  pa&lt;-sXM/sX2
  pb&lt;-(sMY*sX2-sXM*sXY)/(sX2*sM2-sXM^2)
  pc&lt;-(sXY*sM2-sXM*sMY)/(sX2*sM2-sXM^2)
  ps1&lt;-sX2
  ps2&lt;-sM2-sXM^2/sX2
  ps3&lt;-(sX2*sM2*sY2-sX2*sMY^2-sM2*sXY^2-sY2*sXM^2+2*sXM*sXY*sMY)/(sX2*sM2-sXM^2)

  pm1&lt;-mX
  pm2&lt;-mM - pa*mX
  pm3&lt;-mY - pb*mM - p…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/proc_mi">
        <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>proc_mi</title>
        <link>https://nd.psychstat.org/lab/proc_mi</link>
        <description>data FitMiss;
       input Oxygen RunTime RunPulse @@;
       datalines;
    44.609  11.37  178     45.313  10.07  185
    54.297   8.65  156     59.571    .      .
    49.874   9.22    .     44.811  11.63  176
      .     11.95  176          .  10.85    .
    39.442  13.08  174     60.055   8.63  170
    50.541    .      .     37.388  14.03  186
    44.754  11.12  176     47.273    .      .
    51.855  10.33  166     49.156   8.95  180
    40.836  10.95  168     46.672  10.00    .
    46.774  1…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/process_results">
        <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>process_results</title>
        <link>https://nd.psychstat.org/lab/process_results</link>
        <description>## Process the results from simulation for missing data mediation analysis

setwd(&quot;H:\\Private\\bootmedem\\l-20&quot;)

res&lt;-read.table(&quot;res-N100-miss0.2.txt&quot;)

sumres&lt;-cbind(apply(res,2,mean),apply(res,2,sd))

## estimates and the standard deviation
cbind(sumres[37:41,1],sumres[77:81,1],sumres[117:121,1],sumres[157:161,1])
cbind(sumres[37:41,2],sumres[77:81,2],sumres[117:121,2],sumres[157:161,2])

## coverage probability
cvg&lt;-NULL
for (i in 0:3){
cvg&lt;-cbind(cvg,c(sum(res[,38+40*i]&lt;.3481 &amp; res[,41+40…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/r_codes_for_simulation_study_in_experiment_4">
        <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>r_codes_for_simulation_study_in_experiment_4</title>
        <link>https://nd.psychstat.org/lab/r_codes_for_simulation_study_in_experiment_4</link>
        <description>## Dec 14, 2008
## Estimating the parameters
est.g34.inv&lt;-function(par, data, cor=TRUE){
x1&lt;-data$x1
x2&lt;-data$x2
## factor correlation matrix
phi&lt;-matrix(c(1,      par[1],  par[2],
              par[1], 1,       par[3],
              par[2], par[3],  1    ), nrow=3, byrow=T) 

## factor residual variance
psi1&lt;-diag(1,9,9)
for (i in 1:9){
  psi1[i,i]&lt;-par[3+i]
}

## factor loading matrix
lam11&lt;-diag(1,3,3)
for (i in 1:3){
  lam11[i,i]&lt;-par[12+i]
}

lam12&lt;-matrix(par[16:33],nrow=6,byrow=T)

lambda…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/r_codes_to_process_the_results_from_mplus_for_table_1_2">
        <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>r_codes_to_process_the_results_from_mplus_for_table_1_2</title>
        <link>https://nd.psychstat.org/lab/r_codes_to_process_the_results_from_mplus_for_table_1_2</link>
        <description>## model 2
res&lt;-scan(&quot;1g-2-500.txt&quot;)
res.mat&lt;-matrix(res, byrow=T, ncol=66)
res.f&lt;-res.mat[1:1000,26:28]

cbind(apply(res.f,2,mean),apply(res.f,2,var))

## for model 3 to 6
res&lt;-scan(&quot;1g-5-500.txt&quot;)

res.mat&lt;-matrix(res, byrow=T, ncol=96)

res.f&lt;-res.mat[1:1000,41:43]

cbind(apply(res.f,2,mean),apply(res.f,2,var))


## for model 7
res&lt;-scan(&quot;1g-7-500.txt&quot;)
res.mat&lt;-matrix(res, byrow=T, ncol=126)
res.f&lt;-res.mat[1:1000,56:58]

cbind(apply(res.f,2,mean),apply(res.f,2,var))</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/r_codes_to_process_the_results_from_mplus_for_table_3">
        <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>r_codes_to_process_the_results_from_mplus_for_table_3</title>
        <link>https://nd.psychstat.org/lab/r_codes_to_process_the_results_from_mplus_for_table_3</link>
        <description>## handle the model comparison results from mplus

v500&lt;-scan(&#039;all_results500v.txt&#039;)

v500m&lt;-matrix(v500, nrow=1500, byrow=T)

inv500&lt;-scan(&#039;all_results500inv.txt&#039;)

inv500m&lt;-matrix(inv500, nrow=1497, byrow=T)

v500f&lt;-v500m[c(1:523, 525:1034, 1036:1279, 1281:1500), c(40:42, 169)]
inv500f&lt;-inv500m[, c(40:42, 163)]

mean(v500f[,4])
var(v500f[,4])
ks.test(v500f[,4],&#039;pchisq&#039;,23)

mean(inv500f[,4])
var(inv500f[,4])
ks.test(inv500f[,4],&#039;pchisq&#039;,27)

chi.diff&lt;-inv500f[,4]-v500f[,4]
mean(chi.diff)
var(c…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/task">
        <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>task</title>
        <link>https://nd.psychstat.org/lab/task</link>
        <description></description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/test_winbugs">
        <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>test_winbugs</title>
        <link>https://nd.psychstat.org/lab/test_winbugs</link>
        <description>test</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/use_of_server">
        <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>use_of_server</title>
        <link>https://nd.psychstat.org/lab/use_of_server</link>
        <description>Use of Wiki

Create a task

	*  click the edit page link on the bottom
	*  Input code like 
&lt;todo&gt;Task to be done&lt;/todo&gt;

 &lt;todo&gt;Task to be done&lt;/todo&gt;

	*  You may add time as a section title as 

==== Thursday ==== 
&lt;todo&gt;Task to be done&lt;/todo&gt;



Thursday</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/useful_things">
        <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>useful_things</title>
        <link>https://nd.psychstat.org/lab/useful_things</link>
        <description>*  features about multivariate normal distribution [multivariate normal]</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/using_winbugs_on_the_notre_dame_clusters">
        <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>using_winbugs_on_the_notre_dame_clusters</title>
        <link>https://nd.psychstat.org/lab/using_winbugs_on_the_notre_dame_clusters</link>
        <description>Steps

	*  Download OpenBUGS and upload it to dscratch. First upload it to AFS and then copy it to dscratch.
	*  Unzip the file on the cluster
	*  Create a file called linbugs with the following content and change permission using chmod 755 lingbugs 


#!/bin/bash

export LD_ASSUME_KERNEL=2.4.1

DIR=$(dirname $0)
cd &quot;$DIR&quot;
if [ \! -e &quot;$DIR/temp&quot; ] ; then
        mkdir &quot;$DIR/temp&quot;
fi

if [ -e bugs.so ] ; then
        ./cbugs &quot;$DIR&quot; &quot;$DIR/temp&quot; &quot;/bugs.so&quot;
else
        ./cbugs &quot;$DIR&quot; &quot;$DIR/temp&quot; &quot;/…</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/v1_on_nov_22_2008">
        <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>v1_on_nov_22_2008</title>
        <link>https://nd.psychstat.org/lab/v1_on_nov_22_2008</link>
        <description>/***********************************************************
 *Mediation Analysis                                       *
 *                                                         *
 *   Author: Zhiyong Zhang                                 *
 *                                                         *
 *   Purpose: Test mediation through bootstrap and EM      *
 *            algorithm for missing data                   *
 *                                                         *
 *   Usage: …</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/v1_on_nov_23_2008">
        <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>v1_on_nov_23_2008</title>
        <link>https://nd.psychstat.org/lab/v1_on_nov_23_2008</link>
        <description>/***********************************************************
 *Mediation Analysis                                       *
 *                                                         *
 *   Author: Zhiyong Zhang                                 *
 *                                                         *
 *   Purpose: Test mediation through bootstrap and EM      *
 *            algorithm for missing data                   *
 *                                                         *
 *   Usage: …</description>
    </item>
    <item rdf:about="https://nd.psychstat.org/lab/zhang">
        <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>zhang</title>
        <link>https://nd.psychstat.org/lab/zhang</link>
        <description>Papers undergoing

	*  How vague of multivariate priors
	*  PPP for model evaluation in Bayesian SEM
	*  DIC for model comparison in Bayesian SEM
	*  IRT with guessing
	*  Dynamic mediation analysis with Sam
	*  Robust mediation analysis
	*  Power analysis with Timo &amp; Manuel
	*  Bayesian exploratory factor analysis using informative priors
	*  Missing data mediation analysis
	*  Bayesian differential equations by Johnny, Xin, Laura
	*  Robust growth curve modeling using Student-t distribution by…</description>
    </item>
</rdf:RDF>
