<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>10001036</title>
	<atom:link href="http://lixiaoxu.lxxm.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lixiaoxu.lxxm.com</link>
	<description>Teaching notes of szpku dot lixiaoxu at gmail dot com</description>
	<pubDate>Fri, 12 Feb 2010 19:22:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>可改进翻译的统计术语歧义</title>
		<link>http://lixiaoxu.lxxm.com/tatisticsterms/</link>
		<comments>http://lixiaoxu.lxxm.com/tatisticsterms/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 18:59:13 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[Chinese]]></category>

		<guid isPermaLink="false">http://ap2007.72pines.com/?p=252</guid>
		<description><![CDATA[a sample: 一个样本(a case?) &#62; 一组抽样
two sample t test: 两样本t检验(two cases ...?) &#62; 两组样本t检验
sample size: 样本大小(case scale?) &#62; 样本组容量
central tendency: 集中趋势(non-dispersion?) &#62; 中心趋势
dispersion: 离散(discrete?)趋势 &#62; 分散趋势
SD=standard deviation: 标准方差(..variance?) &#62; 标准离差
df=degrees of freedom: 自由度(size of freedom?)  &#62; 自由维度(dimensions of freedom)
]]></description>
			<content:encoded><![CDATA[<p>a sample: 一个样本(a case?) &gt; 一组抽样<br />
two sample t test: 两样本t检验(two cases ...?) &gt; 两组样本t检验<br />
sample size: 样本大小(case scale?) &gt; 样本组容量<br />
central tendency: 集中趋势(non-dispersion?) &gt; 中心趋势<br />
dispersion: 离散(discrete?)趋势 &gt; 分散趋势<br />
SD=standard deviation: 标准方差(..variance?) &gt; 标准离差<br />
df=degrees of freedom: 自由度(size of freedom?)  &gt; 自由维度(dimensions of freedom)</p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/tatisticsterms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>转载：公益广告一枚(已更新)</title>
		<link>http://lixiaoxu.lxxm.com/fwadgfw/</link>
		<comments>http://lixiaoxu.lxxm.com/fwadgfw/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 06:33:27 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[Chinese]]></category>

		<guid isPermaLink="false">http://ap2007.72pines.com/?p=149</guid>
		<description><![CDATA[
转载声明：
1. 授权72pines.com的管理员在判断有必要的情况下将本文转为private.
2. 我还没有试用文中推荐的技术，转载不表示对该技术的适用性背书[update]试用体验甚好，速度优于我目前所用的中文大学vpn，自动切换效果尤佳。
SSH-D服务已终止，详见提供方的说明，下文过期部分已更改文本为灰色。下文推荐的替代品是Puff圣诞版，支持IE、更支持Firefox+Autoproxy。
3.题图T恤亦为转载广告，链接指向淘宝卖家，是否公益待考。图为男款，亦有女款。卖家声称断货，疑为淘宝和谐。有意购买宜直接询问卖家。
 




 

转自：http://docs.google.com/View?id=ddtsdhbg_1frwvsrgg
翻墙组合Firefox+Autoproxy+Puff的使用
 
一、准备工作
1、  下载最新版的Firefox浏览器，猛击此处；
2、  Autoproxy可在安装完Firefox后在组件中心找到；
3、  下载最新版的Puff（当前最新版为圣诞版），猛击此处；
二、开始安装
   1、Firefox的安装：双击下载好的程序，出现安装页面，直接下一步，如图



到此步单击“安装”后程序开始安装，请在安装完成后运行firefox浏览器。
2、安装autoproxy
   运行firefox浏览器后，在工具栏选择“工具”—“附加组件”，如下图
 

在出现的附加组件对话框的搜索栏输入“autoproxy”并单击搜索栏右侧放大镜图标


然后单击上图的“查看全部结果”。
回到firefox浏览器查看自动打开的搜索结果页面，如下图

先选中“让我安装这个试验性附加组件”，然后单击“添加到Firefox”。

安装结束后请单击下图中的“重新启动Firefox”按钮。

Firefox重新启动后，浏览器将自动弹出两个页面：Autoproxy的设置页面及附加组件的设置页面，如下图

选中上图的“gfwList”并确定。附加组件的设置如下图



至此，Autoproxy安装配置完成。
4、  安装Puff，一直Next，期间可选择在桌面建立图标及安装完成后运行程序，如图


运行Puff后点击“connect”，如下图
 


到此步，Firefox已经能通过Puff代理，在Autoproxy的指引下，识别你输入的网址是否需要翻墙了。如果Firefox在这种情况下依然无法打开你需要的网页，那么你可能需要在Autoproxy的gfwList里添加新的规则，具体操作如下：


全文完
 
 
 
本文将提供一种一劳永逸的翻墙方式（ssh -D），实施之后，那道墙——对你来说——将从此透明。
本文面向的用户：使用Windows作为操作系统并且使用Firefox作为常用浏览器。
第一步：免费获取拥有SSH权限的帐号和密码。
默认的免费获取方式：将本文转载到你自己的博客上，将转载后的文章网址发送到。
注意：转载前请先确认自己是(或曾是)一名blogger(博客)，否则将会浪费彼此的时间。
转载方式：拷贝文章代码至博客后台HTML编辑器中，直接发布即可，文章标题自拟，可在前后文插入自己的评论。
经过人工审核，你将收到一封附有五个拥有SSH权限的帐号和密码的电子邮件，你可以将它们赠与你信任的人。
更多获取方式将在今后陆续激活，请关注我们的最新更新：https://friendfeed.com/fuckgfw
第二步：配置MyEnTunnel软件
下载并安装MyEnTunnel，该软件全名为My Encrypted Tunnel。
一键下载：https://dl.getdropbox.com/u/873345/download/myentunnel.exe

按照上图将第一步收到的帐号信息填写到相应的地方后，点击按钮，再点击按钮。
第一次连接过程中会出现一个认证对话框，按照提示确认即可。以后的自动连接中将不再出现此认证对话框。
最后点击按钮，使对话框隐藏到系统任务栏中。
提示：
为MyEntunnel创建一个快捷方式，将其复制到系统的【启动】（C:\Documents and Settings\当前用户名（需要修改成你自己的）\「开始」菜单\程序\启动）文件夹中，今后开机便可自动启动软件，并自动连接服务器。

绿色代表连接成功且稳定；黄色代表正在连接或重新连接；红色代表连接失败。
第三步：配置Firefox浏览器
假设你正使用Firefox浏览器阅读本文。
一键安装：http://autoproxy.mozdev.org/latest.xpi

点击立即安装，安装后，重新启动Firefox。然后你会看到如下对话框，选择gfwlist (P.R.China)后，点击确定。

接着你会看到Firefox主界面右上角出现有一个“福”字图案，点击“福”。

点击“代理服务器——编辑代理服务器”。

随即出现如下画面，你会看到如GAppProxy、Tor和Your Freedom这样一系列代理服务器名称。

将GAppProxy一栏的参数修改为如下图所示。

修改完毕后，点击确定。至此配置已全部就绪。
获取更多帮助，请关注反馈中心：https://friendfeed.com/fuckgfw-feedback

第四步：支持fuckGFW

如果您翻墙成功，请大笑一声并用充满磁性地低音说出：Hello, world!
如果由于线路原因，始终翻墙不成，不要气馁，给我们发Email，咱们一起解决问题。
假如哪天突然无法正常连接，请先到反馈中心汇报，我们会及时做出反应。
目前您有如下几种方式及时获取我们的最新动态：FriendFeed &#124; Twitter &#124; Blog。
保持默契，我们相信您一定可以做到。

版权信息：您可以自由复制、传播、演绎本作品且无需署名、无需注明原始出处。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://store.taobao.com/shop/view_shop-1a785396466aac4eba6062d80942014d.htm"><img class="alignleft" style="border: 0pt none" src="http://lh5.ggpht.com/_DGZ6K2743eE/SkRxk6JFg-I/AAAAAAAABU8/QIXdosK4SYM/s144/thumb.php.jpg" border="0" alt="" width="144" height="144" /></a><br />
转载声明：<br />
1. 授权72pines.com的管理员在判断有必要的情况下将本文转为private.</p>
<p><del datetime="2009-09-03T09:58:43+00:00">2. <span style="text-decoration: line-through">我还没有试用文中推荐的技术，转载不表示对该技术的适用性背书</span>[<span style="color: #ff0000">update</span>]试用体验甚好，速度优于我目前所用的中文大学vpn，自动切换效果尤佳。<br />
</del><strong>SSH-D服务已终止，详见</strong><a href="http://www.google.cn/search?hl=zh-CN&amp;newwindow=1&amp;q=%E5%8F%91%E7%8E%B0%E4%BA%86Dreamhost%E5%AE%A2%E6%9C%8D%E9%83%A8%E7%9A%84%E6%9D%A5%E4%BF%A1%EF%BC%8C+%E5%86%85%E5%AE%B9%E4%BD%A0%E4%BB%AC%E4%B9%9F%E9%83%BD%E7%9F%A5%E9%81%93%E4%BA%86%EF%BC%8C%E5%B0%81%E5%8F%B7%E5%8A%A0%E8%AD%A6%E5%91%8A&amp;btnG=Google+%E6%90%9C%E7%B4%A2"><strong>提供方的说明</strong></a><strong>，下文过期部分已更改文本为灰色。下文推荐的替代品是</strong><a href="http://docs.google.com/View?id=ddtsdhbg_1frwvsrgg"><strong>Puff</strong></a><strong>圣诞版，支持IE、更支持Firefox+Autoproxy。</strong></p>
<p>3.题图T恤亦为转载广告，<a href="http://store.taobao.com/shop/view_shop-1a785396466aac4eba6062d80942014d.htm">链接</a>指向淘宝卖家，是否公益待考。图为男款，亦有女款。卖家声称断货，疑为淘宝和谐。有意购买宜直接询问卖家。</p>
<p> </p>
<hr />
<hr />
<hr />
<hr />
<hr /> </p>
<div id="doc-contents">
<p class="MsoNormal">转自：<a href="http://docs.google.com/View?id=ddtsdhbg_1frwvsrgg">http://docs.google.com/View?id=ddtsdhbg_1frwvsrgg</a></p>
<p class="MsoNormal">翻墙组合Firefox+Autoproxy+Puff的使用</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-family: 宋体">一、准备工作</span></p>
<p class="MsoListParagraph" style="margin-left: 33.75pt">1、<span style="font-style: normal;font-family: &quot;Times New Roman&quot;font-weight: normal"><span style="font-size: xx-small">  </span></span><span style="font-family: 宋体">下载最新版的</span>Firefox<span style="font-family: 宋体">浏览器，</span><a href="http://www.mozilla.com/en-US/products/download.html?product=firefox-3.5.6&amp;os=win&amp;lang=zh-CN"><span style="font-family: 宋体">猛击此处</span></a><span style="font-family: 宋体">；</span></p>
<p class="MsoListParagraph" style="margin-left: 33.75pt">2、<span style="font-style: normal;font-family: &quot;Times New Roman&quot;font-weight: normal"><span style="font-size: xx-small">  </span></span>Autoproxy<span style="font-family: 宋体">可在安装完</span>Firefox<span style="font-family: 宋体">后在组件中心找到；</span></p>
<p class="MsoListParagraph" style="margin-left: 33.75pt">3、<span style="font-style: normal;font-family: &quot;Times New Roman&quot;font-weight: normal"><span style="font-size: xx-small">  </span></span><span style="font-family: 宋体">下载最新版的</span>Puff<span style="font-family: 宋体">（当前最新版为圣诞版），</span><a href="http://dl.dropbox.com/u/3466444/%40xinzhi/p003x.rar"><span style="font-family: 宋体">猛击此处</span></a><span style="font-family: 宋体">；</span></p>
<p class="MsoNormal"><span style="font-family: 宋体">二、开始安装</span></p>
<p class="MsoNormal">   1<span style="font-family: 宋体">、</span>Firefox<span style="font-family: 宋体">的安装：双击下载好的程序，出现安装页面，直接下一步，如图</span></p>
<div id="gg0r" style="text-align: left"><img style="width: 505px;height: 395px" src="http://docs.google.com/File?id=ddtsdhbg_2d2gg5kcd_b" alt="" /></div>
<div id="lzrn" style="text-align: left"><img style="width: 505px;height: 394px" src="http://docs.google.com/File?id=ddtsdhbg_3gwm5phq8_b" alt="" /></div>
<div id="o7ia" style="text-align: left"><img style="width: 504px;height: 394px" src="http://docs.google.com/File?id=ddtsdhbg_4d5jc6xgq_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">到此步单击“安装”后程序开始安装，请在安装完成后运行</span>firefox<span style="font-family: 宋体">浏览器。</span></p>
<p class="MsoNormal">2<span style="font-family: 宋体">、安装</span>autoproxy</p>
<p class="MsoNormal">   <span style="font-family: 宋体">运行</span>firefox<span style="font-family: 宋体">浏览器后，在工具栏选择“工具”—“附加组件”，如下图</span></p>
<p class="MsoNormal"> </p>
<div id="q8bp" style="text-align: left"><img style="width: 579px;height: 226px" src="http://docs.google.com/File?id=ddtsdhbg_5g8zj5hg9_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">在出现的附加组件对话框的搜索栏输入“</span>autoproxy<span style="font-family: 宋体">”并单击搜索栏右侧放大镜图标</span></p>
<div id="floc" style="text-align: left"><img style="width: 519px;height: 212px" src="http://docs.google.com/File?id=ddtsdhbg_6dm359qdk_b" alt="" /></div>
</div>
<p class="MsoNormal"><span style="font-family: 宋体">然后单击上图的“查看全部结果”。</span></p>
<p class="MsoNormal"><span style="font-family: 宋体">回到</span>firefox<span style="font-family: 宋体">浏览器查看自动打开的搜索结果页面，如下图</span></p>
<div id="k6l6" style="text-align: left"><img style="width: 591px;height: 247px" src="http://docs.google.com/File?id=ddtsdhbg_7csfmrvdz_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">先选中“让我安装这个试验性附加组件”，然后单击“添加到</span>Firefox<span style="font-family: 宋体">”。</span></p>
<div id="d2o3" style="text-align: left"><img style="width: 543px;height: 363px" src="http://docs.google.com/File?id=ddtsdhbg_8hdxszsk9_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">安装结束后请单击下图中的“重新启动</span>Firefox<span style="font-family: 宋体">”按钮。</span></p>
<div id="p-8." style="text-align: left"><img style="width: 519px;height: 199px" src="http://docs.google.com/File?id=ddtsdhbg_9d33d4wc8_b" alt="" /></div>
<p class="MsoNormal">Firefox<span style="font-family: 宋体">重新启动后，浏览器将自动弹出两个页面：</span>Autoproxy<span style="font-family: 宋体">的设置页面及附加组件的设置页面，如下图</span></p>
<div id="fo.2" style="text-align: left"><img style="width: 603px;height: 402px" src="http://docs.google.com/File?id=ddtsdhbg_10gvwz6gf2_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">选中上图的“</span>gfwList<span style="font-family: 宋体">”并确定。附加组件的设置如下图</span></p>
<div id="jkds" style="text-align: left"><img style="width: 519px;height: 377px" src="http://docs.google.com/File?id=ddtsdhbg_11cb2s7xcp_b" alt="" /></div>
<div id="pgrz" style="text-align: left"><img style="width: 601px;height: 452px" src="http://docs.google.com/File?id=ddtsdhbg_12cq6wr7gt_b" alt="" /></div>
<div id="j.ja" style="text-align: left"><img style="width: 597px;height: 447px" src="http://docs.google.com/File?id=ddtsdhbg_13c2p48pcn_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">至此，</span>Autoproxy<span style="font-family: 宋体">安装配置完成。</span></p>
<p class="MsoListParagraph" style="margin-left: 33.75pt">4、<span style="font-style: normal;font-family: &quot;Times New Roman&quot;font-weight: normal"><span style="font-size: xx-small">  </span></span><span style="font-family: 宋体">安装</span>Puff<span style="font-family: 宋体">，一直</span>Next<span style="font-family: 宋体">，期间可选择在桌面建立图标及安装完成后运行程序，如图</span></p>
<div id="hy._" style="text-align: left"><img style="width: 500px;height: 390px" src="http://docs.google.com/File?id=ddtsdhbg_16g77vcrgq_b" alt="" /></div>
<div id="wzyf" style="text-align: left"><img style="width: 499px;height: 387px" src="http://docs.google.com/File?id=ddtsdhbg_17dkhmdkdh_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">运行</span>Puff<span style="font-family: 宋体">后点击“</span>connect<span style="font-family: 宋体">”，如下图</span></p>
<p class="MsoNormal"> </p>
<div id="lucr" style="text-align: left"><img style="width: 522px;height: 335px" src="http://docs.google.com/File?id=ddtsdhbg_18ghwc6fdr_b" alt="" /></div>
<div id="yb0l" style="text-align: left"><img style="width: 528px;height: 333px" src="http://docs.google.com/File?id=ddtsdhbg_19grxdkdc5_b" alt="" /></div>
<p class="MsoNormal"><span style="font-family: 宋体">到此步，</span>Firefox<span style="font-family: 宋体">已经能通过</span>Puff<span style="font-family: 宋体">代理，在</span>Autoproxy<span style="font-family: 宋体">的指引下，识别你输入的网址是否需要翻墙了。如果</span>Firefox<span style="font-family: 宋体">在这种情况下依然无法打开你需要的网页，那么你可能需要在</span>Autoproxy<span style="font-family: 宋体">的</span>gfwList<span style="font-family: 宋体">里添加新的规则，具体操作如下：</span></p>
<div id="i3g:" style="text-align: left"><img style="width: 598px;height: 450px" src="http://docs.google.com/File?id=ddtsdhbg_20g7ktb9gw_b" alt="" /></div>
<div style="text-align: left"><img style="width: 593px;height: 445px" src="http://docs.google.com/File?id=ddtsdhbg_21m2rb64hj_b" alt="" /></div>
<p>全文完</p>
<div style="text-align: left"> </div>
<p> </p>
<hr /> </p>
<p style="padding-left: 30px"><span style="color: #888888">本文将提供一种一劳永逸的翻墙方式（ssh -D），实施之后，那道墙——对你来说——将从此透明。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">本文面向的用户：使用Windows作为操作系统并且使用Firefox作为常用浏览器。</span></p>
<h2 style="padding-left: 30px"><span style="color: #888888">第一步：免费获取拥有SSH权限的帐号和密码。</span></h2>
<p style="padding-left: 30px"><span style="color: #888888">默认的免费获取方式：将本文转载到你自己的博客上，将转载后的文章网址发送到<img src="http://photos.smugmug.com/photos/497999637_nw25h-O.png" alt="f.ckgfw#gmail.com" />。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">注意：转载前请先确认自己是(或曾是)一名blogger(博客)，否则将会浪费彼此的时间。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">转载方式：拷贝</span><a href="https://dl.getdropbox.com/u/873345/static/embed.txt"><span style="color: #888888">文章代码</span></a><span style="color: #888888">至博客后台HTML编辑器中，直接发布即可，文章标题自拟，可在前后文插入自己的评论。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">经过人工审核，你将收到一封附有五个拥有SSH权限的帐号和密码的电子邮件，你可以将它们赠与你信任的人。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">更多获取方式将在今后陆续激活，请关注我们的最新更新：</span><a href="https://friendfeed.com/fuckgfw"><span style="color: #888888">https://friendfeed.com/fuckgfw</span></a></p>
<h2 style="padding-left: 30px"><span style="color: #888888">第二步：配置MyEnTunnel软件</span></h2>
<p style="padding-left: 30px"><span style="color: #888888">下载并安装MyEnTunnel，该软件全名为My Encrypted Tunnel。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">一键下载：</span><a href="https://dl.getdropbox.com/u/873345/download/myentunnel.exe"><span style="color: #888888">https://dl.getdropbox.com/u/873345/download/myentunnel.exe</span></a></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956295_FRKXY-O.jpg" alt="myentunnel" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">按照上图将第一步收到的帐号信息填写到相应的地方后，点击<img src="http://photos.smugmug.com/photos/497956305_GuUqV-O.jpg" alt="save" />按钮，再点击<img src="http://photos.smugmug.com/photos/497956257_vDBHg-O.jpg" alt="hide" />按钮。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">第一次连接过程中会出现一个认证对话框，按照提示确认即可。以后的自动连接中将不再出现此认证对话框。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">最后点击<img src="http://photos.smugmug.com/photos/497956277_uqUyE-O.jpg" alt="hide" />按钮，使对话框隐藏到系统任务栏中。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">提示：</span></p>
<p style="padding-left: 30px"><span style="color: #888888">为MyEntunnel创建一个快捷方式，将其复制到系统的【启动】（C:\Documents and Settings\当前用户名（需要修改成你自己的）\「开始」菜单\程序\启动）文件夹中，今后开机便可自动启动软件，并自动连接服务器。</span></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956351_pNNkc-O.png" alt="tray" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">绿色代表连接成功且稳定；黄色代表正在连接或重新连接；红色代表连接失败。</span></p>
<h2 style="padding-left: 30px"><span style="color: #888888">第三步：配置Firefox浏览器</span></h2>
<p style="padding-left: 30px"><span style="color: #888888">假设你正使用</span><a href="http://www.mozilla.com/firefox"><span style="color: #888888">Firefox浏览器</span></a><span style="color: #888888">阅读本文。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">一键安装：</span><a href="http://autoproxy.mozdev.org/latest.xpi"><span style="color: #888888">http://autoproxy.mozdev.org/latest.xpi</span></a></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/498951512_XzxSh-O.png" alt="xpi-offical" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">点击立即安装，安装后，重新启动Firefox。然后你会看到如下对话框，选择gfwlist (P.R.China)后，点击确定。</span></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956357_vmp9W-O.png" alt="gfwlist" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">接着你会看到Firefox主界面右上角出现有一个“福”字图案，点击“福”。</span></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956204_t4d3L-O.png" alt="fu" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">点击“代理服务器——编辑代理服务器”。</span></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956317_yWwtL-O.png" alt="edit" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">随即出现如下画面，你会看到如GAppProxy、Tor和Your Freedom这样一系列代理服务器名称。</span></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956227_jQby9-O.png" alt="before" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">将GAppProxy一栏的参数修改为如下图所示。</span></p>
<p style="padding-left: 30px"><span style="color: #888888"><img src="http://photos.smugmug.com/photos/497956232_ttQRj-O.png" alt="after" /></span></p>
<p style="padding-left: 30px"><span style="color: #888888">修改完毕后，点击确定。至此配置已全部就绪。</span></p>
<p style="padding-left: 30px"><span style="color: #888888">获取更多帮助，请关注反馈中心：</span><a href="https://friendfeed.com/fuckgfw-feedback"><span style="color: #888888">https://friendfeed.com/fuckgfw-feedback</span></a></p>
<p style="padding-left: 30px"><a href="http://digg.com/d1nsDv"><span style="color: #888888"><img src="https://dl.getdropbox.com/u/873345/static/Bernie.png" border="0" alt="Bernie:&quot;Eat me!&quot;" align="right" /></span></a></p>
<h2 style="padding-left: 30px"><span style="color: #888888">第四步：支持fuckGFW</span></h2>
<ol style="padding-left: 30px">
<li><span style="color: #888888">如果您翻墙成功，请大笑一声并用充满磁性地低音说出：Hello, world!</span></li>
<li><span style="color: #888888">如果由于线路原因，始终翻墙不成，不要气馁，给我们发Email，咱们一起解决问题。</span></li>
<li><span style="color: #888888">假如哪天突然无法正常连接，请先到</span><a href="https://friendfeed.com/fuckgfw-feedback"><span style="color: #888888">反馈中心</span></a><span style="color: #888888">汇报，我们会及时做出反应。</span></li>
<li><span style="color: #888888">目前您有如下几种方式及时获取我们的最新动态：</span><a href="https://friendfeed.com/fuckgfw"><span style="color: #888888">FriendFeed</span></a><span style="color: #888888"> | </span><a href="https://twitter.com/hashfuckgfw"><span style="color: #888888">Twitter</span></a><span style="color: #888888"> | </span><a href="http://justbeok.tumblr.com/"><span style="color: #888888">Blog</span></a><span style="color: #888888">。</span></li>
<li><span style="color: #888888">保持</span><a href="http://justbeok.tumblr.com/post/95146810/privity"><span style="color: #888888">默契</span></a><span style="color: #888888">，我们相信您一定可以做到。</span></li>
</ol>
<h4 style="padding-left: 30px"><span style="color: #888888">版权信息：您可以自由复制、传播、演绎本作品且无需署名、无需注明原始出处。</span></h4>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/fwadgfw/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Why practitioners discretize their continuous data</title>
		<link>http://lixiaoxu.lxxm.com/why-practitioners-discretize-their-continous-data/</link>
		<comments>http://lixiaoxu.lxxm.com/why-practitioners-discretize-their-continous-data/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 22:06:55 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[ANOVA]]></category>

		<category><![CDATA[nominal]]></category>

		<category><![CDATA[regression]]></category>

		<guid isPermaLink="false">http://ap2007.72pines.com/?p=61</guid>
		<description><![CDATA[Yihui asked this question yesterday. My supervisor Dr. Hau also criticized routine grouping discretization. I encountered two plausible reasons in 2007 classes, one negative, the other at least conditionally positive.
The first is a variant of the old Golden Hammer law -- if the only tool is ANOVA, every continuous predictor need discretization. The second reason [...]]]></description>
			<content:encoded><![CDATA[<p>Yihui asked <a href="http://www.yihui.name/cn/post/267.htm">this question</a> yesterday. My supervisor Dr. Hau also criticized routine grouping discretization. I encountered two plausible reasons in 2007 classes, one negative, the other at least conditionally positive.</p>
<p>The first is a variant of the old <a href="http://en.wikipedia.org/wiki/Golden_hammer">Golden Hammer</a> law -- if the only tool is ANOVA, every continuous predictor need discretization. The second reason is empirical -- ANOVA with discretization steals df(s). Let's demo it with a diagram.<br />
The red are the population points, and the black are samples. Which predicts the population better--the green continuous line, or the discretized blue dashes? R simulation code is given.<br />
<a href="http://picasaweb.google.com/lh/photo/sQIdJ4fPxLJQ7xZcy3QTkQ?feat=embedwebsite"><img src="http://lh5.ggpht.com/_DGZ6K2743eE/SbBFJRO7aUI/AAAAAAAABQM/CFrnV7nCp1Y/s400/discretization.jpg" /></a></p>
<p style="padding-left: 30px"><FORM target=_blank method=post action="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi"><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ><BR/><textarea wrap=off cols=""  style="width: 100%;"  rows="15"  name="Rcode">
set.seed(0);
## 200 red population points uniformly distribute along 0&lt;=x&lt;10
## with a little non-linearity along 0&lt;=y&lt;10.
n&lt;-200; ##sample size
q&lt;-1.7; ##non-linear
x&lt;-runif(n,max=10);
y_true&lt;-2.51+3.24*(10^(-q))*10*x^q;
x.discrete&lt;-as.factor(floor(x)+1);
y&lt;-y_true+rnorm(n,0,3.2); ## error std is 3.2
plot(x,y);
points(x,y_true,col='red');
abline(lm(y~x),col='green');
points(x,fitted.values(lm(y~x.discrete)),col='blue',pch='-');
##
##
y_x&lt;-fitted.values(lm(y~x));
y_x.discrete&lt;-fitted.values(lm(y~x.discrete));
##
##
t(y_x-y_true)%*%(y_x-y_true); ## green, 565.2617
t(y_x.discrete-y_true)%*%(y_x.discrete-y_true); ##blue, 278.5208
t(y-y_true)%*%(y-y_true);## black, 2073.946</textarea><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ></FORM><BR/></p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/why-practitioners-discretize-their-continous-data/feed/</wfw:commentRss>
		</item>
		<item>
		<title>《结构方程模型及其应用》(侯, 温, &#38; 成,2004)部分章节R代码</title>
		<link>http://lixiaoxu.lxxm.com/hauwencheng2004rcode/</link>
		<comments>http://lixiaoxu.lxxm.com/hauwencheng2004rcode/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 04:52:57 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[Chinese]]></category>

		<category><![CDATA[LISREL]]></category>

		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/hauwencheng2004rcode/</guid>
		<description><![CDATA[
用John FOX教授的sem包试写了这本教材的几个例子，结果都与LISREL8报告的Minimum Fit Function Chi-Square吻合。不过LISREL其它拟合指标用的是Normal Theory Weighted Least Squares Chi-Square ，所以看上去比Minimum Fit Function Chi-Square报告的结果要好那么一些些。LISREL历史上推的GFI/AGFI曾因为经常将差报好被批评，圈内朋友私下嘲笑这样LISREL就更好卖了，买软件的用户也高兴将差报好，只有读Paper的人上当。
目前只写了chap3_1..到Chap3_2_...，一共5(或6)个例子。尺有所短，寸有所长--sem包不会自动报告所有修正指数，不能做样本量不一样多的多组模型，对复杂的模型要写的代码太多。不过，在已经尝试的几个例子里，有一个是LISREL跑不出来但sem包能跑出结果的。目前sem包还没有达到结构方程众多商业软件的成熟水准，但R庞大的义工武器库已经使sem包至少已经在Missing Data Multiple Imputation、Bootstrapping等等应用上胜出一筹。所以例子中还附带了缺失数据一讲Multiple Impuation的R示范代码。
欢迎各位有兴趣作类似尝试的同学将结果email我， 可以陆续更新到下面的GPL版权代码集合中。
代码下载：lixiaoxu.googlepages.com (中大镜像)
[update] AMos, Mplus 与 SAS/STAT CALIS 缺省报告与使用的都是 Minimum Fit Function Chi-Square，可通过各种软件(Albright &#38; Park, 2009)的结果对比查验。Normal Theory Weighted Least Squares Chi-Square并非总是比Minimum Fit Function Chi-Square报告更“好”的拟合结果（虽然常常如此）。Olsson, Foss, 和 Breivik (2004) 用模拟数据对比了二者，确证Minimum Fit Function Chi-Square计算得到的拟合指标在小样本之外的情形都比Normal Theory Weighted Least Squares Chi-Square的指标更适用。
R的sem包目前在迭代初值的计算上还做得不够好。我遇到的几个缺省初值下迭代不收敛案例，将参数设定合理范围的任意初值（比如TX，TY都设成0-1之间的正实数）之后都收敛了。
--
Albright, J. J., [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.douban.com/subject/1507312/"><img src="http://otho.douban.com/mpic/s1507454.jpg" alt="" align="top" /></a></p>
<p>用<a href="http://socserv.mcmaster.ca/jfox/">John FOX</a>教授的<a href="http://socserv.mcmaster.ca/jfox/Misc/sem/SEM-paper.pdf">sem包</a>试写了这本教材的几个例子，结果都与LISREL8报告的Minimum Fit Function Chi-Square吻合。不过LISREL其它拟合指标用的是Normal Theory Weighted Least Squares Chi-Square ，所以看上去比Minimum Fit Function Chi-Square报告的结果要好那么一些些。LISREL历史上推的GFI/AGFI曾因为经常将差报好被批评，圈内朋友私下嘲笑这样LISREL就更好卖了，买软件的用户也高兴将差报好，只有读Paper的人上当。</p>
<p>目前只写了chap3_1..到Chap3_2_...，一共5(或6)个例子。尺有所短，寸有所长--sem包不会自动报告所有修正指数，不能做样本量不一样多的多组模型，对复杂的模型要写的代码太多。不过，在已经尝试的几个例子里，有一个是LISREL跑不出来但sem包能跑出结果的。目前sem包还没有达到结构方程众多商业软件的成熟水准，但R庞大的义工武器库已经使sem包至少已经在Missing Data Multiple Imputation、Bootstrapping等等应用上胜出一筹。所以例子中还附带了缺失数据一讲Multiple Impuation的R示范代码。</p>
<p>欢迎各位有兴趣作类似尝试的同学将结果email我， 可以陆续更新到下面的GPL版权代码集合中。</p>
<p><strong>代码下载：<a href="http://lixiaoxu.googlepages.com/Hau_Wen_Cheng.r.zip">lixiaoxu.googlepages.com </a>(<a href="http://ihome.cuhk.edu.hk/~s043115/Hau_Wen_Cheng.r.zip">中大镜像</a>)</strong></p>
<p>[<span style="color: #ff0000">update</span>] AMos, Mplus 与 SAS/STAT CALIS 缺省报告与使用的都是 Minimum Fit Function Chi-Square，可通过各种软件(Albright &amp; Park, 2009)的结果对比查验。Normal Theory Weighted Least Squares Chi-Square并非总是比Minimum Fit Function Chi-Square报告更“好”的拟合结果（虽然常常如此）。Olsson, Foss, 和 Breivik (2004) 用模拟数据对比了二者，确证Minimum Fit Function Chi-Square计算得到的拟合指标在小样本之外的情形都比Normal Theory Weighted Least Squares Chi-Square的指标更适用。</p>
<p>R的sem包目前在迭代初值的计算上还做得不够好。我遇到的几个缺省初值下迭代不收敛案例，将参数设定合理范围的任意初值（比如TX，TY都设成0-1之间的正实数）之后都收敛了。</p>
<p>--</p>
<p>Albright, J. J., &amp; Park., H. M. (2009). Confirmatory factor analysis using Amos, LISREL, Mplus, and SAS/STAT CALIS. The University Information Technology Services Center for Statistical and Mathematical Computing, Indiana University. Retrieved July 7, 2009, from <a href="http://www.indiana.edu/~statmath/stat/all/cfa/cfa.pdf">http://www.indiana.edu/~statmath/stat/all/cfa/cfa.pdf</a>.<strong><br />
</strong></p>
<p>Olsson, U. H., Foss, T., &amp; Breivik, E. (2004). Two equivalent discrepancy functions for maximum likelihood estimation: Do their test statistics follow a non-central chi-square distribution under model misspecification? <em>Sociological Methods Research</em>, 32(4), 453-500.</p>
<p>[<span style="color: #ff0000">update</span>]R中的sem包妙处之一是可<a href="http://lixiaoxu.lxxm.com/web-powered-by-r-or-r-powered-by-web/">在线实现</a>结构方程应用界面。下面这个最粗陋的例子对应原书Chap3_1_4_CFA_MB.LS8的结果。<br />
--荣耀属于<a href="http://socserv.mcmaster.ca/jfox/">sem package的作者</a>、<a href="http://www.math.montana.edu/faculty/jbanfield.html">Rweb的作者</a>、以及服务器运算资源的<a href="http://pbil.univ-lyon1.fr/Rweb/Rweb.general.html">提供者</a>。</p>
<p><FORM target=_blank method=post action="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi"><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ><BR/><textarea wrap=off cols=""  style="width: 100%;"  rows="15"  name="Rcode">##Input Correlation Matrix
R.DHP&lt;-matrix(0,ncol=17,nrow=17);
R.DHP[col(R.DHP) &gt;= row(R.DHP)] &lt;- c(
1,
.34,1,
.38,.35,1,
.02,.03,.04,1,
.15,.19,.14,.02,1,
.17,.15,.20,.01,.42,1,
.20,.13,.12,.00,.40,.21,1,
.32,.32,.21,.03,.10,.10,.07,1,
.10,.17,.12,.02,.15,.18,.23,.13,1,
.14,.16,.15,.03,.14,.19,.18,.18,.37,1,
.14,.15,.19,.01,.18,.30,.13,.08,.38,.38,1,
.18,.16,.24,.02,.14,.21,.21,.22,.06,.23,.18,1,
.19,.20,.15,.01,.14,.24,.09,.24,.15,.21,.21,.45,1,
.18,.21,.18,.03,.25,.18,.18,.18,.22,.12,.24,.28,.35,1,
.08,.18,.16,.01,.22,.20,.22,.12,.12,.16,.21,.25,.20,.26,1,
.12,.16,.25,.02,.15,.12,.20,.14,.17,.20,.14,.20,.15,.20,.50,1,
.20,.16,.18,.04,.25,.14,.21,.17,.21,.21,.23,.15,.21,.22,.29,.41,1
);
R.DHP&lt;-t(R.DHP);
colnames(R.DHP)&lt;-rownames(R.DHP)&lt;-paste('X',1:17,sep='');
require(Rpad);require(R2HTML);
HTMLh2('Inputted Correlation Matrix');
HTML(R.DHP);
##
##
##Input Model Specification of Chap3_1_4_CFA_MB.LS8
require(sem);
model.B &lt;- matrix(ncol=3,byrow=TRUE,data=c(
"X1 &lt;-&gt; X1" , "TD1_1"  , NA  ,
"X2 &lt;-&gt; X2" , "TD2_2"  , NA  ,
"X3 &lt;-&gt; X3" , "TD3_3"  , NA  ,
"X5 &lt;-&gt; X5" , "TD5_5"  , NA  ,
"X6 &lt;-&gt; X6" , "TD6_6"  , NA  ,
"X7 &lt;-&gt; X7" , "TD7_7"  , NA  ,
"X8 &lt;-&gt; X8" , "TD8_8"  , NA  ,
"X9 &lt;-&gt; X9" , "TD9_9"  , NA  ,
"X10&lt;-&gt; X10", "TD10_10", NA  ,
"X11&lt;-&gt; X11", "TD11_11", NA  ,
"X12&lt;-&gt; X12", "TD12_12", NA  ,
"X13&lt;-&gt; X13", "TD13_13", NA  ,
"X14&lt;-&gt; X14", "TD14_14", NA  ,
"X15&lt;-&gt; X15", "TD15_15", NA  ,
"X16&lt;-&gt; X16", "TD16_16", NA  ,
"X17&lt;-&gt; X17", "TD17_17", NA  ,
"xi1&lt;-&gt; xi1", NA       , "1" ,
"xi2&lt;-&gt; xi2", NA       , "1" ,
"xi3&lt;-&gt; xi3", NA       , "1" ,
"xi4&lt;-&gt; xi4", NA       , "1" ,
"xi5&lt;-&gt; xi5", NA       , "1" ,
"xi1&lt;-&gt; xi2", "PH12"   , NA  ,
"xi1&lt;-&gt; xi3", "PH13"   , NA  ,
"xi1&lt;-&gt; xi4", "PH14"   , NA  ,
"xi1&lt;-&gt; xi5", "PH15"   , NA  ,
"xi2&lt;-&gt; xi3", "PH23"   , NA  ,
"xi2&lt;-&gt; xi4", "PH24"   , NA  ,
"xi2&lt;-&gt; xi5", "PH25"   , NA  ,
"xi3&lt;-&gt; xi4", "PH34"   , NA  ,
"xi3&lt;-&gt; xi5", "PH35"   , NA  ,
"xi4&lt;-&gt; xi5", "PH45"   , NA  ,
"X1 &lt;- xi1" , "LX1_1"  , NA  ,
"X2 &lt;- xi1" , "LX2_1"  , NA  ,
"X3 &lt;- xi1" , "LX3_1"  , NA  ,
"X5 &lt;- xi2" , "LX5_2"  , NA  ,
"X6 &lt;- xi2" , "LX6_2"  , NA  ,
"X7 &lt;- xi2" , "LX7_2"  , NA  ,
"X8 &lt;- xi1" , "LX8_1"  , NA  ,
"X9 &lt;- xi3" , "LX9_3"  , NA  ,
"X10&lt;- xi3" , "LX10_3" , NA  ,
"X11&lt;- xi3" , "LX11_3" , NA  ,
"X12&lt;- xi4" , "LX12_4" , NA  ,
"X13&lt;- xi4" , "LX13_4" , NA  ,
"X14&lt;- xi4" , "LX14_4" , NA  ,
"X15&lt;- xi5" , "LX15_5" , NA  ,
"X16&lt;- xi5" , "LX16_5" , NA  ,
"X17&lt;- xi5" , "LX17_5" , NA  )
);
class(model.B)&lt;-'mod';
##
##
N=350;##sample size;
##R.DHP[-4,-4] excludes X4
## Result
HTML(summary(sem.B&lt;-sem(model.B, R.DHP[-4,-4], N)));
## Residuals
HTML(round(residuals(sem.B),3));
#####################
boxplot.matrix = function(M,ylim=c(-1,1)) {
M = as.matrix(M);
boxplot(c(M[row(M)&gt;col(M)]),at=1,xlab='',ylab='',ylim=ylim);
points(rep(1,length(c(M[row(M)&gt;col(M)]))),c(M[row(M)&gt;col(M)]),pch='-',col='red');
boxplot.stats(c(M[row(M)&gt;col(M)]));
}
####################
boxplot(residuals(sem.B));
</textarea><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ></FORM><BR/></p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/hauwencheng2004rcode/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Paper for 1st Chinese useR! Conference: Web Powered by R, or R Powered by Web</title>
		<link>http://lixiaoxu.lxxm.com/web-powered-by-r-or-r-powered-by-web/</link>
		<comments>http://lixiaoxu.lxxm.com/web-powered-by-r-or-r-powered-by-web/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 15:58:15 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[Chinese]]></category>

		<category><![CDATA[R]]></category>

		<category><![CDATA[Rweb]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/web-powered-by-r-or-r-powered-by-web/</guid>
		<description><![CDATA[欢迎在本部的同学明天上午到现场看李崇亮同学演示，地点见会议主页
论文下载(Googlepages, 中文大学镜像)
RWebFriend for Wordpress 在线示例(yo2.cn上的示例,  奇想录上的临时示例)
Google Presentation 在线演示

[update2009.07.11]文中MediaWiki与R集成的实验平台已不再开放编辑权限，原例转到另一个平台上（界面是西班牙语，找不到英语界面的平台）。希望能有帮手提供linux服务器自建一个平台。
]]></description>
			<content:encoded><![CDATA[<p>欢迎在本部的同学明天上午到现场看李崇亮同学演示，地点见会议<a href="http://stat.ruc.edu.cn/cn/notice/58785.html">主页</a></p>
<p>论文下载(<a href="http://lixiaoxu.googlepages.com/14Dec2008.WEBandR.pdf">Googlepages</a>, <a href="http://ihome.cuhk.edu.hk/~s043115/14Dec2008.WEBandR.pdf">中文大学镜像</a>)<br />
<a href="http://lixiaoxu.lxxm.com/rwebfriend/">RWebFriend for Wordpress</a> 在线示例(yo2.cn上的<a href="http://lixiaoxu.yo2.cn/psychometrics/rwebfriend">示例</a>,  奇想录上的<a href="http://wiki.qixianglu.cn">临时示例</a>)</p>
<p>Google Presentation <a href="http://docs.google.com/Presentation?id=dgf7j3jp_86d4x7r2gd">在线演示</a><br />
<iframe src='http://docs.google.com/present/embed?id=dgf7j3jp_86d4x7r2gd' frameborder='0' width='410' height='342'></iframe></p>
<p>[<span style="color: #ff0000">update</span>2009.07.11]文中MediaWiki与R集成的实验平台已不再开放编辑权限，原例转到另一个<a href="http://www.traba.org/wikitraba/index.php/Usuari:Szpku.lixiaoxu#Online_calculator_for_critical_values.2C_cumulative_probabilities.2C_and_critical_noncentral_parameters">平台</a>上（界面是西班牙语，找不到英语界面的平台）。希望能有帮手提供linux服务器自建一个平台。</p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/web-powered-by-r-or-r-powered-by-web/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Misunderstanding of Eq. 4 in Singer&#8217;s (1998) SAS PROC MIXED paper</title>
		<link>http://lixiaoxu.lxxm.com/misunderstanding-of-eq-4-in-singers-1998-sas-proc-mixed-paper/</link>
		<comments>http://lixiaoxu.lxxm.com/misunderstanding-of-eq-4-in-singers-1998-sas-proc-mixed-paper/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 10:26:55 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[HLM]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/misunderstanding-of-eq-4-in-singers-1998-sas-proc-mixed-paper/</guid>
		<description><![CDATA[Singer (1998, p. 327, Eq. 4) gave a big covariance matrix as the following --
...if we combine the variance components for the two random effects together into a single matrix, we would find a highly structured block diagonal matrix. For example, if there were three students in each class, we would have:

If the number of [...]]]></description>
			<content:encoded><![CDATA[<p>Singer (1998, p. 327, Eq. 4) gave a big covariance matrix as the following --</p>
<blockquote><p>...if we combine the variance components for the two random effects together into a single matrix, we would find a highly structured block diagonal matrix. For example, if there were three students in each class, we would have:<br />
<img src="http://lh6.ggpht.com/_DGZ6K2743eE/SUORKkpca0I/AAAAAAAABIA/3AwhCS6k6VA/s800/m.JPG" border="0" width="400" /><br />
If the number of students per class varied, the size of each of these submatrices would also vary, although they would still have this common structure. The variance in MATHACH for any given student is assumed to be <img src='http://tex.72pines.com/latex.php?latex=%5Ctau_%7B00%7D%2B%5Csigma%5E%7B2%7D' title='\tau_{00}+\sigma^{2}' alt='\tau_{00}+\sigma^{2}' class='latex' /> ...</p></blockquote>
<p>Quiz:</p>
<p>1. Sampling <em>K</em> repetitions with replacement, <img src='http://tex.72pines.com/latex.php?latex=Y_%7Bk%7D' title='Y_{k}' alt='Y_{k}' class='latex' /> denotes MATHACH of the <em>k</em>-th random student within a given class, say, the first class. What is the population variance of the Y series? A: <img src='http://tex.72pines.com/latex.php?latex=%5Csigma%5E%7B2%7D' title='\sigma^{2}' alt='\sigma^{2}' class='latex' />, B: <img src='http://tex.72pines.com/latex.php?latex=%5Ctau_%7B00%7D%2B%5Csigma%5E%7B2%7D' title='\tau_{00}+\sigma^{2}' alt='\tau_{00}+\sigma^{2}' class='latex' />.</p>
<p>2. Sampling <img src='http://tex.72pines.com/latex.php?latex=2%5Ctimes+K' title='2\times K' alt='2\times K' class='latex' /> repetitions with replacement, <img src='http://tex.72pines.com/latex.php?latex=%5Cleft%28Y_%7B1st%2Ck%7D%2CY_%7B2nd%2Ck%7D%5Cright%29' title='\left(Y_{1st,k},Y_{2nd,k}\right)' alt='\left(Y_{1st,k},Y_{2nd,k}\right)' class='latex' /> denotes MATHACH(s) of the <em>k</em>-th pair of random students within a given class, say, the first class. Sometime the 2nd sampled student is just the 1st one by chance. What is the population covariance of the <img src='http://tex.72pines.com/latex.php?latex=Y_%7B1st%7D' title='Y_{1st}' alt='Y_{1st}' class='latex' /> and <img src='http://tex.72pines.com/latex.php?latex=Y_%7B2nd%7D' title='Y_{2nd}' alt='Y_{2nd}' class='latex' /> series? A: 0, B: <img src='http://tex.72pines.com/latex.php?latex=%5Ctau_%7B00%7D' title='\tau_{00}' alt='\tau_{00}' class='latex' />.</p>
<p>3. Sampling <em>K</em> repetitions with replacement, <img src='http://tex.72pines.com/latex.php?latex=Y_%7Bk%7D' title='Y_{k}' alt='Y_{k}' class='latex' /> denotes MATHACH of the <em>k</em>-th random student within one randomly sampled class for each repetition. What is the population variance of the <em>Y</em> series? A: <img src='http://tex.72pines.com/latex.php?latex=%5Csigma%5E%7B2%7D' title='\sigma^{2}' alt='\sigma^{2}' class='latex' />, B: <img src='http://tex.72pines.com/latex.php?latex=%5Ctau_%7B00%7D%2B%5Csigma%5E%7B2%7D' title='\tau_{00}+\sigma^{2}' alt='\tau_{00}+\sigma^{2}' class='latex' />.</p>
<p>4. Sampling <img src='http://tex.72pines.com/latex.php?latex=2%5Ctimes+K' title='2\times K' alt='2\times K' class='latex' /> repetitions with replacement, <img src='http://tex.72pines.com/latex.php?latex=%5Cleft%28Y_%7B1st%2Ck%7D%2CY_%7B2nd%2Ck%7D%5Cright%29' title='\left(Y_{1st,k},Y_{2nd,k}\right)' alt='\left(Y_{1st,k},Y_{2nd,k}\right)' class='latex' /> denotes MATHACH(s) of the <em>k</em>-th pair of random students within one random class sampled for each pair of students. Sometime the 2nd sampled student is just the 1st one by chance. What is the population covariance of the <img src='http://tex.72pines.com/latex.php?latex=Y_%7B1st%7D' title='Y_{1st}' alt='Y_{1st}' class='latex' /> and <img src='http://tex.72pines.com/latex.php?latex=Y_%7B2nd%7D' title='Y_{2nd}' alt='Y_{2nd}' class='latex' /> series? A: 0, B: <img src='http://tex.72pines.com/latex.php?latex=%5Ctau_%7B00%7D' title='\tau_{00}' alt='\tau_{00}' class='latex' />.</p>
<p>Correct answers: A A B B.</p>
<p>Your plausible incorrect answers for Quiz 1 and 2 just tell how the matrix caused my misunderstanding when I read the paper the first time. It is difficult to give names for the randomly sampled classes, and the matrix columns and rows.</p>
<p>--<br />
Singer, J. D. (1998). <a href="http://gseweb.harvard.edu/~faculty/singer/#papers">Using SAS PROC MIXED to fit multilevel models, hierarchical models, and individual growth models.</a> <em>Journal of Educational and Behavioral Statistics. 24.</em> 323-355.</p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/misunderstanding-of-eq-4-in-singers-1998-sas-proc-mixed-paper/feed/</wfw:commentRss>
		</item>
		<item>
		<title>气泡图击败Data Snoop</title>
		<link>http://lixiaoxu.lxxm.com/bubble-plot/</link>
		<comments>http://lixiaoxu.lxxm.com/bubble-plot/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 21:03:26 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[Chinese]]></category>

		<category><![CDATA[Bubble Plot]]></category>

		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/%e6%b0%94%e6%b3%a1%e5%9b%be%e5%87%bb%e8%b4%a5data-snoop/</guid>
		<description><![CDATA[转自：泡网
Data Snoop, 民科的神奇直线(google 始作俑者):

气泡图，数据击败Data Snoop:


R tip：
n=20;plot(rnorm(n),rnorm(n),cex=sqrt(abs(rnorm(n)))*10,pch=1,col=1:n);
]]></description>
			<content:encoded><![CDATA[<p>转自：<a href="http://www.paowang.com/cgi-bin/forum/viewpost.cgi?which=paowang1&amp;id=785904">泡网</a></p>
<p>Data Snoop, 民科的神奇直线(google <a href="//sb.google.com/search?hl=en&amp;q=%E6%9D%8E%E9%87%91%E8%94%9A+%E5%9C%B0%E9%9C%87%E5%9B%BE&amp;btnG=Google%20Search">始作俑者</a>):<br />
<a href="http://hi.baidu.com/psupsume/blog/item/85cb9c3e51ed2ffc828b1396.html"><img src="http://lh6.ggpht.com/_DGZ6K2743eE/SS9Dxfjp6aI/AAAAAAAABBc/fu8UP8eP6OE/s640/a79cebf87e0a8313d8f9fd5f.jpg" alt="民科的神奇直线" border="0" width="400" /></a></p>
<p>气泡图，数据击败Data Snoop:<br />
<a href="http://www.paowang.com/cgi-bin/forum/viewpost.cgi?which=paowang1&amp;id=785937"><img src="http://lh6.ggpht.com/_DGZ6K2743eE/SS9GEQfx2NI/AAAAAAAABB8/2mIIkwYfCvA/s720/mapdgea0007.jpg" alt="莫说是条直线，就是一朵菊花也能连出来" border="0" width="400" /><br />
</a></p>
<p>R tip：</p>
<blockquote><p><a href="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi?Rcode=n%3D20%3Bplot(rnorm(n)%2Crnorm(n)%2Ccex%3Dsqrt(abs(rnorm(n)))*10%2Cpch%3D1%2Ccol%3D1%3An)%3B">n=20;plot(rnorm(n),rnorm(n),cex=sqrt(abs(rnorm(n)))*10,pch=1,col=1:n);</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/bubble-plot/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;Confidence interval of R-square&#8221;, but, which one?</title>
		<link>http://lixiaoxu.lxxm.com/ci-of-r2/</link>
		<comments>http://lixiaoxu.lxxm.com/ci-of-r2/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 21:14:03 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[confidence interval]]></category>

		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/ci-of-r2/</guid>
		<description><![CDATA[In linear regression, confidence interval (CI) of population DV is narrower than that of predicted DV. With the assumption of generalizability, CI of  at  is
,
while CI of  is
.
The pivot methods of both are quite similar as following.
 ,
so  .
,
so 

 of linear regression is the point estimate of

for fixed IV(s) model. [...]]]></description>
			<content:encoded><![CDATA[<p>In linear regression, confidence interval (CI) of population <em>DV</em> is narrower than that of predicted <em>DV</em>. With the assumption of generalizability, CI of <img src='http://tex.72pines.com/latex.php?latex=%5Ctilde%7BY%7D_%7B%5Cleft%5B1%5Ctimes1%5Cright%5D%7D' title='\tilde{Y}_{\left[1\times1\right]}' alt='\tilde{Y}_{\left[1\times1\right]}' class='latex' /> at <img src='http://tex.72pines.com/latex.php?latex=x_%7B%5Cleft%5B1%5Ctimes+p%5Cright%5D%7D' title='x_{\left[1\times p\right]}' alt='x_{\left[1\times p\right]}' class='latex' /> is</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Chat%7BY%7D%5Cpm%5Cleft%28x%5Cleft%28X%5E%7B%5Ctau%7DX_%7B%5Cleft%5BN%5Ctimes+p%5Cright%5D%7D%5Cright%29%5E%7B-1%7Dx%5E%7B%5Ctau%7D%5Cright%29%5E%7B%5Cfrac%7B1%7D%7B2%7D%7D%5Chat%7B%5Csigma%7Dt_%7B%5Cfrac%7B%5Calpha%7D%7B2%7D%2CN-p%7D' title='\;\hat{Y}\pm\left(x\left(X^{\tau}X_{\left[N\times p\right]}\right)^{-1}x^{\tau}\right)^{\frac{1}{2}}\hat{\sigma}t_{\frac{\alpha}{2},N-p}' alt='\;\hat{Y}\pm\left(x\left(X^{\tau}X_{\left[N\times p\right]}\right)^{-1}x^{\tau}\right)^{\frac{1}{2}}\hat{\sigma}t_{\frac{\alpha}{2},N-p}' class='latex' />,</p>
<p>while CI of <img src='http://tex.72pines.com/latex.php?latex=Y%5Cleft%28x%5Cright%29%3D%5Ctilde%7BY%7D%5Cleft%28x%5Cright%29%2B%5Cvarepsilon' title='Y\left(x\right)=\tilde{Y}\left(x\right)+\varepsilon' alt='Y\left(x\right)=\tilde{Y}\left(x\right)+\varepsilon' class='latex' /> is</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Chat%7BY%7D%5Cpm%5Cleft%281%2Bx%5Cleft%28X%5E%7B%5Ctau%7DX_%7B%5Cleft%5BN%5Ctimes+p%5Cright%5D%7D%5Cright%29%5E%7B-1%7Dx%5E%7B%5Ctau%7D%5Cright%29%5E%7B%5Cfrac%7B1%7D%7B2%7D%7D%5Chat%7B%5Csigma%7Dt_%7B%5Cfrac%7B%5Calpha%7D%7B2%7D%2CN-p%7D' title='\;\hat{Y}\pm\left(1+x\left(X^{\tau}X_{\left[N\times p\right]}\right)^{-1}x^{\tau}\right)^{\frac{1}{2}}\hat{\sigma}t_{\frac{\alpha}{2},N-p}' alt='\;\hat{Y}\pm\left(1+x\left(X^{\tau}X_{\left[N\times p\right]}\right)^{-1}x^{\tau}\right)^{\frac{1}{2}}\hat{\sigma}t_{\frac{\alpha}{2},N-p}' class='latex' />.</p>
<p>The pivot methods of both are quite similar as following.</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Cfrac%7B%5Chat%7BY%7D-%5Ctilde%7BY%7D%7D%7Bs_%7B%5Chat%7BY%7D%7D%7D%5Csim+t_%7Bdf%3DN-p%7D' title='\;\frac{\hat{Y}-\tilde{Y}}{s_{\hat{Y}}}\sim t_{df=N-p}' alt='\;\frac{\hat{Y}-\tilde{Y}}{s_{\hat{Y}}}\sim t_{df=N-p}' class='latex' /> ,</p>
<p>so <img src='http://tex.72pines.com/latex.php?latex=%5Ctilde%7BY%7D_%7Bcritical%7D%3D%5Chat%7BY%7D-s_%7B%5Chat%7BY%7D%7D%5Ctimes+t_%7Bcritical%7D' title='\tilde{Y}_{critical}=\hat{Y}-s_{\hat{Y}}\times t_{critical}' alt='\tilde{Y}_{critical}=\hat{Y}-s_{\hat{Y}}\times t_{critical}' class='latex' /> .</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Cfrac%7B%5Chat%7BY%7D-Y%7D%7Bs_%7B%5Cleft%28%5Chat%7BY%7D-Y%5Cright%29%7D%7D%5Csim+t_%7Bdf%3DN-p%7D+' title='\;\frac{\hat{Y}-Y}{s_{\left(\hat{Y}-Y\right)}}\sim t_{df=N-p} ' alt='\;\frac{\hat{Y}-Y}{s_{\left(\hat{Y}-Y\right)}}\sim t_{df=N-p} ' class='latex' />,</p>
<p>so <img src='http://tex.72pines.com/latex.php?latex=Y_%7Bcritical%7D%3D%5Chat%7BY%7D-s_%7B%5Cleft%28%5Chat%7BY%7D-Y%5Cright%29%7D%5Ctimes+t_%7Bcritical%7D%3D%5Chat%7BY%7D-s_%7B%5Cleft%28%5Chat%7BY%7D-%5Ctilde%7BY%7D-%5Cvarepsilon%5Cright%29%7D%5Ctimes+t_%7Bcritical%7D' title='Y_{critical}=\hat{Y}-s_{\left(\hat{Y}-Y\right)}\times t_{critical}=\hat{Y}-s_{\left(\hat{Y}-\tilde{Y}-\varepsilon\right)}\times t_{critical}' alt='Y_{critical}=\hat{Y}-s_{\left(\hat{Y}-Y\right)}\times t_{critical}=\hat{Y}-s_{\left(\hat{Y}-\tilde{Y}-\varepsilon\right)}\times t_{critical}' class='latex' /></p>
<p><a href="http://picasaweb.google.com/lh/photo/H2K0RXrrdb21u_cmSLSnjQ"><img src="http://lh3.ggpht.com/_DGZ6K2743eE/SSskL3fYPwI/AAAAAAAAA_c/1bwjnX0UrDM/s800/CIs.jpg" border="0" alt="" width="400" /></a></p>
<p><img src='http://tex.72pines.com/latex.php?latex=R%5E%7B2%7D' title='R^{2}' alt='R^{2}' class='latex' /> of linear regression is the point estimate of</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Ceta%5E%7B2%7D%5Cequiv%5Cfrac%7BSS%5Cleft%28%5Ctilde%7BY%7D_%7B%5Cleft%5BN%5Ctimes1%5Cright%5D%7D%5Cright%29%7D%7BSS%5Cleft%28%5Ctilde%7BY%7D_%7B%5Cleft%5BN%5Ctimes1%5Cright%5D%7D%5Cright%29%2BN%5Csigma%5E%7B2%7D%7D' title='\;\eta^{2}\equiv\frac{SS\left(\tilde{Y}_{\left[N\times1\right]}\right)}{SS\left(\tilde{Y}_{\left[N\times1\right]}\right)+N\sigma^{2}}' alt='\;\eta^{2}\equiv\frac{SS\left(\tilde{Y}_{\left[N\times1\right]}\right)}{SS\left(\tilde{Y}_{\left[N\times1\right]}\right)+N\sigma^{2}}' class='latex' /></p>
<p>for fixed <em>IV</em>(s) model. Or, it is the point estimate of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D' title='\rho^{2}' alt='\rho^{2}' class='latex' /> wherein <img src='http://tex.72pines.com/latex.php?latex=%5Crho' title='\rho' alt='\rho' class='latex' /> denotes the correlation of <em>Y</em> and <img src='http://tex.72pines.com/latex.php?latex=X%5Cbeta' title='X\beta' alt='X\beta' class='latex' />, the linear composition of random <em>IV</em>(s) . The CI of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D' title='\rho^{2}' alt='\rho^{2}' class='latex' /> is wider than that of <img src='http://tex.72pines.com/latex.php?latex=%5Ceta%5E%7B2%7D' title='\eta^{2}' alt='\eta^{2}' class='latex' /> with the same <img src='http://tex.72pines.com/latex.php?latex=R%5E%7B2%7D' title='R^{2}' alt='R^{2}' class='latex' /> and confidence level.</p>
<p><span style="color: #ff0000">[update] It is obvious that CI of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D' title='\rho^{2}' alt='\rho^{2}' class='latex' /> relies on the distribution presumption of <em>IV</em>(s) and <em>DV</em>, as fixed <em>IV</em>(s) are just special cases of generally random <em>IV</em>(s). Usually, the presumption is that all <em>IV</em>(s) and <em>DV </em> are from multivariate normal distribution. </span></p>
<p>In the bivariate normal case with a single random <em>IV</em>, through Fisher's <em>z</em>-transform of Pearson's <em>r</em>, CI of the re-sampled <img src='http://tex.72pines.com/latex.php?latex=R%5E%7B%5Cprime2%7D%3Dr%5E%7B%5Cprime2%7D' title='R^{\prime2}=r^{\prime2}' alt='R^{\prime2}=r^{\prime2}' class='latex' /> can also be constructed. Intuitively, it should be wider than CI of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D+' title='\rho^{2} ' alt='\rho^{2} ' class='latex' />.</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Ctanh%5E-%5Cleft%28r%5Cright%29%5Cequiv%5Cfrac%7B1%7D%7B2%7D%5Clog%5Cfrac%7B1%2Br%7D%7B1-r%7D%5C%3B%7Bappr%5Catop+%5Csim%7D%5C%3B+N%5Cleft%28%5Ctanh%5E-%5Cleft%28%5Crho%5Cright%29%2C%5Cfrac%7B1%7D%7BN-3%7D%5Cright%29' title='\;\tanh^-\left(r\right)\equiv\frac{1}{2}\log\frac{1+r}{1-r}\;{appr\atop \sim}\; N\left(\tanh^-\left(\rho\right),\frac{1}{N-3}\right)' alt='\;\tanh^-\left(r\right)\equiv\frac{1}{2}\log\frac{1+r}{1-r}\;{appr\atop \sim}\; N\left(\tanh^-\left(\rho\right),\frac{1}{N-3}\right)' class='latex' /></p>
<p>Thus,</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Ctanh%5E-%5Cleft%28r%5E%7B%5Cprime%7D%5Cright%29-%5Ctanh%5E-%5Cleft%28r%5Cright%29%7Bappr%5Catop+%5Csim%7DN%5Cleft%280%2C%5Cfrac%7B2%7D%7BN-3%7D%5Cright%29' title='\;\tanh^-\left(r^{\prime}\right)-\tanh^-\left(r\right){appr\atop \sim}N\left(0,\frac{2}{N-3}\right)' alt='\;\tanh^-\left(r^{\prime}\right)-\tanh^-\left(r\right){appr\atop \sim}N\left(0,\frac{2}{N-3}\right)' class='latex' /></p>
<p>CI of <img src='http://tex.72pines.com/latex.php?latex=%5Ctanh%5E-%5Cleft%28r%5E%7B%5Cprime%7D%5Cright%29' title='\tanh^-\left(r^{\prime}\right)' alt='\tanh^-\left(r^{\prime}\right)' class='latex' /> can be constructed as <img src='http://tex.72pines.com/latex.php?latex=%5Ctanh%5E-%5Cleft%28r%5Cright%29%5Cpm%5Csqrt%7B%5Cfrac%7B2%7D%7BN-3%7D%7Dz_%7B%5Cfrac%7B%5Calpha%7D%7B2%7D%7D' title='\tanh^-\left(r\right)\pm\sqrt{\frac{2}{N-3}}z_{\frac{\alpha}{2}}' alt='\tanh^-\left(r\right)\pm\sqrt{\frac{2}{N-3}}z_{\frac{\alpha}{2}}' class='latex' /> . With the reverse transform <img src='http://tex.72pines.com/latex.php?latex=%5Ctanh%5Cleft%28.%5Cright%29' title='\tanh\left(.\right)' alt='\tanh\left(.\right)' class='latex' />, the CI bounds of <img src='http://tex.72pines.com/latex.php?latex=R%5E%7B%5Cprime2%7D' title='R^{\prime2}' alt='R^{\prime2}' class='latex' /> are</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Cleft%28%5Cmax%5Cleft%280%2C%5Ctanh%5Cleft%28%5Ctanh%5E-%5Cleft%28R%5Cright%29-%5Csqrt%7B%5Cfrac%7B2%7D%7BN-3%7D%7Dz_%7B1-%5Cfrac%7B%5Calpha%7D%7B2%7D%7D%5Cright%29%5Cright%29%5Cright%29%5E%7B2%7D' title='\;\left(\max\left(0,\tanh\left(\tanh^-\left(R\right)-\sqrt{\frac{2}{N-3}}z_{1-\frac{\alpha}{2}}\right)\right)\right)^{2}' alt='\;\left(\max\left(0,\tanh\left(\tanh^-\left(R\right)-\sqrt{\frac{2}{N-3}}z_{1-\frac{\alpha}{2}}\right)\right)\right)^{2}' class='latex' /></p>
<p>and</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Cleft%28%5Ctanh%5Cleft%28%5Ctanh%5E%7B-1%7D%5Cleft%28R%5Cright%29%2B%5Csqrt%7B%5Cfrac%7B2%7D%7BN-3%7D%7Dz_%7B1-%5Cfrac%7B%5Calpha%7D%7B2%7D%7D%5Cright%29%5Cright%29%5E%7B2%7D' title='\;\left(\tanh\left(\tanh^{-1}\left(R\right)+\sqrt{\frac{2}{N-3}}z_{1-\frac{\alpha}{2}}\right)\right)^{2}' alt='\;\left(\tanh\left(\tanh^{-1}\left(R\right)+\sqrt{\frac{2}{N-3}}z_{1-\frac{\alpha}{2}}\right)\right)^{2}' class='latex' />.</p>
<p>In multiple <em>p</em> <em>IV</em>(s) case, Fisher's <em>z</em>-transform is</p>
<p><img src='http://tex.72pines.com/latex.php?latex=%5C%3B%5Cleft%28N-2-p%5Cright%29%5Cleft%28%5Ctanh%5E-%5Cleft%28R%5Cright%29%5Cright%29%5E%7B2%7D%5C%3B%7Bappr%5Catop+%5Csim%7D%5C%3B%5Cchi_%7Bdf%3Dp%2Cncp%3D%5Cleft%28N-2-p%5Cright%29%5Cleft%28%5Ctanh%5E-%5Cleft%28%5Crho%5Cright%29%5Cright%29%5E%7B2%7D%7D%5E%7B2%7D' title='\;\left(N-2-p\right)\left(\tanh^-\left(R\right)\right)^{2}\;{appr\atop \sim}\;\chi_{df=p,ncp=\left(N-2-p\right)\left(\tanh^-\left(\rho\right)\right)^{2}}^{2}' alt='\;\left(N-2-p\right)\left(\tanh^-\left(R\right)\right)^{2}\;{appr\atop \sim}\;\chi_{df=p,ncp=\left(N-2-p\right)\left(\tanh^-\left(\rho\right)\right)^{2}}^{2}' class='latex' /> .</p>
<p>Although it could also be used to construct CI of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D' title='\rho^{2}' alt='\rho^{2}' class='latex' /> , it is inferior to noncentral <em>F</em> approximation of <em>R</em> (Lee, 1971). The latter is the algorithm adopted by MSDOS software<em> R2</em> (Steiger &amp; Fouladi, 1992) and  <em>R-</em>function ci.R2(...) within package MBESS (Kelley, 2008).</p>
<p>In literature, "CI(s) of R-square" are hardly the literal CI(s) of <img src='http://tex.72pines.com/latex.php?latex=R%5E%7B2%7D' title='R^{2}' alt='R^{2}' class='latex' /> in replication once more. Most of them actually refer to CI of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D' title='\rho^{2}' alt='\rho^{2}' class='latex' /> . Authors in social science unfamiliar to <a href="http://en.wikipedia.org/wiki/LaTeX"><img src='http://tex.72pines.com/latex.php?latex=L%5EAT_EX' title='L^AT_EX' alt='L^AT_EX' class='latex' /></a> hate to type <img src='http://tex.72pines.com/latex.php?latex=%5Crho' title='\rho' alt='\rho' class='latex' /> when they feel convenient to type <em>r</em> or <em>R</em>. Users of experimentally designed fixed <em>IV</em>(s) should have reported CI of <img src='http://tex.72pines.com/latex.php?latex=%5Ceta%5E%7B2%7D' title='\eta^{2}' alt='\eta^{2}' class='latex' /> . However, if they were too familiar to Steiger's software <em>R2</em> to ignore <a href="http://www.statpower.net/publications_and_papers.htm">his series papers on CI of effect size</a>, it would be significant chance for them to report a loose CI of <img src='http://tex.72pines.com/latex.php?latex=%5Crho%5E%7B2%7D' title='\rho^{2}' alt='\rho^{2}' class='latex' />, even in a looser name "CI of <img src='http://tex.72pines.com/latex.php?latex=R%5E%7B2%7D' title='R^{2}' alt='R^{2}' class='latex' />".</p>
<p>----</p>
<p>Lee, Y. S. (1971). Some results on the sampling distribution of the multiple correlation coefficient. <em>Journal of the Royal Statistical Society, B, 33</em>, 117–130.</p>
<p>Kelley, K. (2008). MBESS: Methods for the Behavioral, Educational, and Social Sciences. R package version 1.0.1. [Computer software]. Available from <a href="http://www.indiana.edu/~kenkel">http://www.indiana.edu/~kenkel</a></p>
<p>Steiger, J. H., &amp; Fouladi, R. T. (1992). <a href="http://www.statpower.net/page5.html">R2: A computer program for interval estimation, power calculation, and hypothesis testing for the squared multiple correlation</a>. <em>Behavior research methods, instruments and computers, 4</em>, 581–582.</p>
<p>R Code of Part I:<br />
<FORM target=_blank method=post action="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi"><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ><BR/><textarea wrap=off cols=""  style="width: 100%;"  rows="15"  name="Rcode">conf.level &lt;- .95;
##Parameters for Part I
##CI of population of DV vs. of re-sampled DV
beta &lt;- 1.73;
sigma &lt;- 0.32;
N &lt;-80;
x &lt;- runif(N);
new &lt;- data.frame(x = seq(0,5, 0.1));
y &lt;- beta *x + sigma*rnorm(x);
pred.pred &lt;- predict(lm1&lt;-lm(y ~ x), new
, interval="prediction");
pred.conf &lt;- predict(lm1, new
, interval="confidence");
matplot(new$x,pred.pred,type="l",col="red",
main="Blue: CI of population\nRed: CI of new sample",
xlab="",ylab="");
matplot(new$x,pred.conf,type="l",col="blue",add=TRUE);
points(x,y);
##End of Part I.</textarea><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ></FORM><BR/></p>
<p>R Code of Part II:<br />
<FORM target=_blank method=post action="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi"><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ><BR/><textarea wrap=off cols=""  style="width: 100%;"  rows="15"  name="Rcode">R2&lt;-.659;    ###### Observed R-square           ######
N &lt;- 80;   ###### Sample size                   ######
p &lt;- 1;     ## Number of IV(s) other than intercept ##
conf.level=.95; ##  Confidence level            ######
## Only when p=1 , CI of R^2 can be calculated. ######
######################################################
##Input R-squared, Sample Size, number of IV(s),   ###
## and  confidence level                           ###
######################################################
## Usually you need not change the following codes ###
######################################################
## Output CIs of \eta^2, \rho^2, vs. R^2           ###
######################################################
##
source("http://ihome.cuhk.edu.hk/~s043115/data/MBESS.ciR2.R");
## substitute "require(MBESS)";
##
###############################
ci.eta2&lt;-c((ci&lt;-ci.R2(conf.level=conf.level,
R2=R2, N=N, p=p,
Random.Predictors=FALSE))$Lower.Conf.Limit.R2
,ci$Upper.Conf.Limit.R2);
ci.rho2&lt;-c((ci&lt;- ci.R2(conf.level=conf.level,
R2=R2, N=N, p=p,
Random.Predictors=TRUE))$Lower.Conf.Limit.R2
,ci$Upper.Conf.Limit.R2);
ci.R2 &lt;- c((
max(0,
tanh(
atanh(sqrt(R2)) -
sqrt(2/(N-3))*qnorm(0.5+conf.level/2)
)
)
)^2 ,(
tanh(
atanh(sqrt(R2)) +
sqrt(2/(N-3))*qnorm(0.5+conf.level/2)
)
)^2);
(ci.R2);
if(1&lt;p) ci.R2[] &lt;- NA;
ci3&lt;-data.frame(c(ci.eta2,ci.rho2,ci.R2)
,rep(c(' eta2',' rho2','Replicated R2'),each=2)
,c(rep(c('Lower','Upper'),3)));
names(ci3)&lt;-c('CI','Type','Direction');

tapply(ci3$CI,list(ci3$Type,ci3$Direction),mean);

##to plot CI bars with boxplot
## let Q1,Q2,Q3 = R2 and Q0,Q4 as CI bounds
ci3.R2&lt;-ci3;ci3.R2$CI[]&lt;-R2;
plot(CI~Type,range=0,
data=rbind(ci3,ci3.R2,ci3.R2),xlab='',
ylab=paste(conf.level,'CI'),
main=paste('R2=',round(R2,4),', N=',N,'\n',p,' predictor(s) other than intercept'),
xlim=c(0,4),ylim=c(0,1));
abline(h=R2);
</textarea><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ></FORM><BR/></p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/ci-of-r2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress (and WPMU) Plugin for R Web Interface</title>
		<link>http://lixiaoxu.lxxm.com/rwebfriend/</link>
		<comments>http://lixiaoxu.lxxm.com/rwebfriend/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 22:40:22 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[R]]></category>

		<category><![CDATA[Rweb]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/rwebfriend/</guid>
		<description><![CDATA[


Download: RwebFriend.zip  [Update] Including Chinese UTF8 Version



Plugin Name: RwebFriend


Plugin URL: http://lixiaoxu.lxxm.com/RwebFriend


Description: Set Rweb url options and transform [&#114;code]...[/rcode] or &#60;&#114;code&#62;...&#60;/rcode&#62; tag-pair into TEXTAREA which supports direct submit to web interface of R. *Credit notes：codes of two relevant plugins are studied and imported. One of the plugins deals with auto html tags within TEXTAREA tag-pair, [...]]]></description>
			<content:encoded><![CDATA[<table border="0" width="100%">
<tbody>
<tr>
<td><strong>Download: <a href="http://ihome.cuhk.edu.hk/~s043115/RwebFriend.zip">RwebFriend.zip</a> </strong><span style="color: #ff0000"> [Update] Including Chinese UTF8 Version<br />
</span></td>
</tr>
<tr>
<td>Plugin Name: RwebFriend</td>
</tr>
<tr>
<td>Plugin URL: <a href="http://lixiaoxu.lxxm.com/RwebFriend">http://lixiaoxu.lxxm.com/RwebFriend</a></td>
</tr>
<tr>
<td>Description: Set Rweb url options and transform [&#114;code]...[/rcode] or &lt;&#114;code&gt;...&lt;/rcode&gt; tag-pair into TEXTAREA which supports direct submit to <a href="http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-Web-Interfaces">web interface of R</a>. *Credit notes：codes of two relevant plugins are studied and imported. <a href="http://blogoff.de/2007/10/10/wordpress-plugin-to-remove-unwanted-html-from-textarea-tags">One of the plugins</a> deals with auto html tags within TEXTAREA tag-pair, <a href="http://sparanoid.com/tag/quotmarks-replacer">the other</a> stops Wordpress to auto-transform quotation marks.</td>
</tr>
<tr>
<td>Version: 1.0</td>
</tr>
<tr>
<td>Author: Xiaoxu LI</td>
</tr>
<tr>
<td>Author URI: http://lixiaoxu.lxxm.com/</td>
</tr>
<tr>
<td>Setup:</td>
</tr>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/fXnZkdzldGvd4rFfT10lqQ"><img src="http://lh5.ggpht.com/_DGZ6K2743eE/SSiH0k4WMZI/AAAAAAAAA9Q/DexUkOkFgeY/s400/Rweb.Setup.jpg" border="0" alt="" width="400" /></a></td>
</tr>
<tr>
<td>Usage:</td>
</tr>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/qNSoPySsO0_R4uYtjhqjMA"><img src="http://lh5.ggpht.com/_DGZ6K2743eE/SSiH-tP-a8I/AAAAAAAAA9w/is47T9Il8ao/s400/Rweb.Usage.jpg" border="0" alt="" width="400" /></a></td>
</tr>
</tbody>
</table>
<p>[<span style="color: #ff0000">update</span>] The free Chinese wordpress platform <a href="http://yo2.cn">yo2.cn</a> has installed this plugin.  See my <a href="http://lixiaoxu.yo2.cn/psychometrics/rwebfriend">demo</a>.</p>
<p>More online demos -- <a href="http://wiki.qixianglu.cn/rwebfriendttest/">http://wiki.qixianglu.cn/rwebfriendttest/</a></p>
<p>[<span style="color: #ff0000">update, June 2009</span>] <a href="http://72pines.com">72pines.com</a> (here!) installed this plugin. Try</p>
<p><FORM target=_blank method=post action="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi"><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ><BR/><textarea wrap=off cols=""  style="width: 100%;"  rows="15"  name="Rcode">n=10000;    ##  Sample Size  ####################
r=0.6;  ##original regression coefficient #######
##                                             ##
####### You can maneuver parameters above  ######
##                                             ##
###### Demo nominal IV in Regression ############
##                                             ##
####  Do NOT change following codes ... #########
######  unless you're familiar with R ###########
##                                             ##
#################################################
re=(1-r*r)^.5;
X=rnorm(n);
Y=X*r+re*rnorm(n);
Z=as.integer(X&gt;0);
Y=Y*Z+(-Y)*(1-Z);
Z=as.factor(X&gt;0); ## nominal IV
##Red (totally covered by Green) : Y~X
##Green: Y~X+Z Blue: Y~X+Z+X:Z
##Brown: X~Y+Z Yellow: X~Y+Z+Y:Z
plot(X,Y,asp=1,col="pink");
points(X[X&lt;=0], Y[X&lt;=0],col="grey");
points(X,predict(lm(Y~X)),col="red");
points(X,predict(lm(Y~X+Z)),col="green");
points(X,predict(lm(Y~X+Z+X:Z)),col="blue");
points(predict(lm(X~Y+Z)),Y,col="brown");
points(predict(lm(X~Y+Z+Y:Z)),Y,col="yellow");</textarea><br />
<input type=submit value="看结果" >
<input type=reset value="重置" ></FORM><BR/></p>
<p>[<span style="color: #ff0000">update</span>2009JUL18]Test installed packages of Rweb:<br />
<a href="http://www.mzandee.net/cgi-bin/Rweb/Rweb.cgi?Rcode=library%28%29">http://www.mzandee.net/cgi-bin/Rweb/Rweb.cgi</a><br />
<a href="http://bayes.math.montana.edu/cgi-bin/Rweb/Rweb.cgi?Rcode=library%28%29">http://bayes.math.montana.edu/cgi-bin/Rweb/Rweb.cgi</a><br />
<a href="http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi?Rcode=library%28%29">http://pbil.univ-lyon1.fr/cgi-bin/Rweb/Rweb.cgi</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/rwebfriend/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Type III ANOVA in R</title>
		<link>http://lixiaoxu.lxxm.com/type-iii-anova-in-r/</link>
		<comments>http://lixiaoxu.lxxm.com/type-iii-anova-in-r/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 07:06:12 +0000</pubDate>
		<dc:creator>lixiaoxu</dc:creator>
		
		<category><![CDATA[English]]></category>

		<category><![CDATA[ANOVA]]></category>

		<category><![CDATA[R]]></category>

		<category><![CDATA[SAS]]></category>

		<category><![CDATA[Type III]]></category>

		<guid isPermaLink="false">http://lixiaoxu.lxxm.com/2008/11/18/type-iii-anova-in-r/</guid>
		<description><![CDATA[Type III ANOVA SS for factor A within interaction of factor B is defined as , wherein A:B  is the pure interaction effect orthogonal to main effects of A, B, and intercept. There are some details in R to get pure interaction dummy IV(s).
Data is from SAS example PROC GLM, Example 30.3: Unbalanced ANOVA for [...]]]></description>
			<content:encoded><![CDATA[<p>Type III ANOVA <em>SS</em> for factor <em>A</em> within interaction of factor <em>B</em> is defined as <img src='http://tex.72pines.com/latex.php?latex=SS_%7BA%3AB%2BA%2BB%7D-SS_%7BA%3AB%2BB%7D' title='SS_{A:B+A+B}-SS_{A:B+B}' alt='SS_{A:B+A+B}-SS_{A:B+B}' class='latex' />, wherein <em>A:B</em>  is the <font color="#ff0000">pure</font> interaction effect orthogonal to main<em> </em>effects of <em>A</em>, <em>B</em>, and intercept. There are some details in R to get pure interaction dummy <em>IV</em>(s).</p>
<p>Data is from SAS example PROC GLM, <a href="http://www.otago.ac.nz/sas/stat/chap30/sect52.htm">Example 30.3: Unbalanced ANOVA for Two-Way Design with Interaction</a></p>
<blockquote><p><code>##<br />
##Data from http://www.otago.ac.nz/sas/stat/chap30/sect52.htm<br />
##<br />
drug &lt;-  as.factor(c(t(t(rep(1,3)))%*%t(1:4))); ##Factor A<br />
disease &lt;- as.factor(c(t(t(1:3)) %*% t(rep(1,4))));##Factor B<br />
y &lt;- t(matrix(c(<br />
42	,44	,36	,13	,19	,22<br />
,33	,NA	,26	,NA	,33	,21<br />
,31	,-3	,NA	,25	,25	,24<br />
,28	,NA	,23	,34	,42	,13<br />
,NA	,34	,33	,31	,NA	,36<br />
,3	,26	,28	,32	,4	,16<br />
,NA	,NA	,1	,29	,NA	,19<br />
,NA	,11	,9	,7	,1	,-6<br />
,21	,1	,NA	,9	,3	,NA<br />
,24	,NA	,9	,22	,-2	,15<br />
,27	,12	,12	,-5	,16	,15<br />
,22	,7	,25	,5	,12	,NA<br />
),nrow=6));<br />
## verify data with http://www.otago.ac.nz/sas/stat/chap30/sect52.htm<br />
(cbind(drug,disease,y));<br />
##<br />
## make a big table<br />
y &lt;- c(y);<br />
drug &lt;- rep(drug,6);<br />
disease &lt;- rep(disease,6);<br />
##<br />
## Design the PURE interaction dummy variables<br />
m &lt;- model.matrix(lm(rep(0,length(disease)) ~  disease + drug +disease:drug));<br />
##! If lm(y~ ...) is used, the is.na(y) rows will be dropped. The residuals will be orthogonal to observed A, &amp; B rather than designed cell A &amp; B. It will be Type II SS rather than Type III SS.<br />
c &lt;- attr(m,"assign")==3;<br />
(IV_Interaction &lt;-residuals( lm(m[,c] ~ m[,!c])));<br />
##<br />
## verify data through type I &amp; II ANOVA to http://www.otago.ac.nz/sas/stat/chap30/sect52.htm<br />
## Type I ANOVA of A, defined by SS_A --<br />
anova(lm(y~drug*disease));<br />
##<br />
## Type II ANOVA of A, defined by SS_{A+B}-SS_B --<br />
require(car);<br />
Anova(lm(y~drug*disease),type='II');<br />
anova(lm(y~disease),lm(y~drug + disease))<br />
##<br />
##<br />
## Type III ANOVA of A defined by SS_{A:B+A+B}-SS_{A:B+B}<br />
t(t(c(	anova(lm(y~IV_Interaction+disease),lm(y~disease * drug))$'Sum of Sq'[2]<br />
,anova(lm(y~IV_Interaction+drug),lm(y~disease*drug))$'Sum of Sq'[2]<br />
,anova(lm(y~disease+drug),lm(y~disease*drug))$'Sum of Sq'[2])))<br />
##<br />
##</code></p></blockquote>
<p><strike>Currently, Anova(...) of <a href="http://cran.r-project.org/web/packages/car/index.html">Prof John Fox's <em>car</em> package</a> (V. 1.2-8 or 1.2-9) used "impure" interaction dummy <em>IV</em>(s), which made its type III result relying upon the order of factor levels. </strike><strike>I think in its next version, the "pure" interaction dummy <em>IV</em>(s) will be adopted to give consistent type III <em>SS</em>.</strike></p>
<p>[<font color="#ff0000">update:</font>]</p>
<p>In <a href="http://cran.r-project.org/web/packages/car/index.html">Prof John FOX's <em>car</em> package</a>,  with parameter <em>contrasts</em> in inputted <em>lm</em> object, Example(Anova) gave type III <em>SS</em> consistent to  other softwares. In this case, the code line should be --</p>
<blockquote><p><code> Anova(lm(y~drug*disease, contrasts=list(drug=contr.sum, disease=contr.sum)),type='III');</code></p></blockquote>
<p>Contrasts patterns are defined within lm(...) rather than Anova(...). An lm object with default contrasts parameter is inappropriate to calculate type III <em>SS</em>, or the result will rely on the level names in any nominal factor --</p>
<blockquote><p><code>require(car);<br />
M2&lt;-Moore;<br />
M2$f1&lt;-M2$fcategory;<br />
M2$f2&lt;-as.factor(- as.integer(M2$fcategory));<br />
mod1&lt;-lm(formula = conformity ~ f1 * partner.status,data=M2);<br />
mod2&lt;-lm(formula = conformity ~ f2 * partner.status,data=M2);<br />
c(Anova(mod1,type='III')$'Sum Sq'[3],Anova(mod2,type='III')$'Sum Sq'[3])</code></p></blockquote>
<p>There was hot discussion of type III ANOVA on R-help newsgroup. Thomas Lumley thought Types of <em>SS</em>  nowadays <em>don't have to make any real sense --</em></p>
<blockquote><p><em><a href="http://tolstoy.newcastle.edu.au/R/help/05/04/3009.html">http://tolstoy.newcastle.edu.au/R/help/05/04/3009.html</a></em></p>
<p><em>This is one of many examples of an attempt to provide a mathematical answer to something that isn't a mathematical question.</em></p>
<p><em>As people have already pointed out, in any practical testing situation you have two models you want to compare. If you are working in an interactive statistical environment, or even in a modern batch-mode system, you can fit the two models and compare them. If you want to compare two other models, you can fit them and compare them.</em></p>
<p><em>However, in the Bad Old Days this was inconvenient (or so I'm told). If you had half a dozen tests, and one of the models was the same in each test, it was a substantial saving of time and effort to fit this model just once.</em></p>
<p><em>This led to a system where you specify a model and a set of tests: eg I'm going to fit y~a+b+c+d and I want to test (some of) y~a vs y~a+b, y~a+b vs y~a+b+c and so on. Or, I want to test (some of) y~a+b+c vs y~a+b+c+d, y~a+b+d vs y~a+b+c+d and so on. This gives the "Types" of sums of squares, which are ways of specifying sets of tests. You could pick the "Type" so that the total number of linear models you had to fit was minimized. As these are merely a computational optimization, they don't have to make any real sense. Unfortunately, as with many optimizations, they have gained a life of their own.</em></p>
<p><em>The "Type III" sums of squares are the same regardless of order, but this is a bad property, not a good one. The question you are asking when you test "for" a term X really does depend on what other terms are in the model, so order really does matter. However, since you can do anything just by specifying two models and comparing them, you don't actually need to worry about any of this.</em></p>
<p><em>-thomas </em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://lixiaoxu.lxxm.com/type-iii-anova-in-r/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
