<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Capital of Statistics &#187; Recent Posts</title>
<link>http://cos.name/en/</link>
<description>In the name of statistics, unite!</description>
<language>en</language>
<pubDate>Tue, 07 Sep 2010 07:58:16 +0000</pubDate>

<item>
<title>digitalcat on "Nonlinear color gradient in ggplot2"</title>
<link>http://cos.name/en/topic/12#post-66</link>
<pubDate>Thu, 19 Aug 2010 19:44:33 +0000</pubDate>
<dc:creator>digitalcat</dc:creator>
<guid isPermaLink="false">66@http://cos.name/en/</guid>
<description>&#60;p&#62;Good tip. I had a similar solution once but instead of tinkering with the color gradient I just log transformed my data.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "sqldf package"</title>
<link>http://cos.name/en/topic/17#post-65</link>
<pubDate>Fri, 23 Jul 2010 21:02:47 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">65@http://cos.name/en/</guid>
<description>&#60;p&#62;I guess it might be the package &#60;code&#62;reshape&#60;/code&#62; by Hadley...
&#60;/p&#62;</description>
</item>
<item>
<title>EzGraphs on "sqldf package"</title>
<link>http://cos.name/en/topic/17#post-64</link>
<pubDate>Fri, 23 Jul 2010 17:15:00 +0000</pubDate>
<dc:creator>EzGraphs</dc:creator>
<guid isPermaLink="false">64@http://cos.name/en/</guid>
<description>&#60;p&#62;I recently have been using the sqldf package to reshape data frames.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.r-chart.com/2010/07/make-r-speak-sql-with-sqldf.html&#34; rel=&#34;nofollow&#34;&#62;http://www.r-chart.com/2010/07/make-r-speak-sql-with-sqldf.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What is the best method that you know of for reshaping data frames?
&#60;/p&#62;</description>
</item>
<item>
<title>pink_lover on "i need help on LDA (linear discriminant analysis)"</title>
<link>http://cos.name/en/topic/16#post-63</link>
<pubDate>Wed, 21 Jul 2010 22:41:48 +0000</pubDate>
<dc:creator>pink_lover</dc:creator>
<guid isPermaLink="false">63@http://cos.name/en/</guid>
<description>&#60;p&#62;i need help on LDA (linear discriminant analysis). I want to decrease a high dimension  data to one dimension using LDA. I find a code on line, but it need class label. If I know nothing about the data, and I do not know what is the label, how could I decrease the dimension?&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>kirkland on "I need help on SPSS"</title>
<link>http://cos.name/en/topic/2#post-62</link>
<pubDate>Tue, 20 Apr 2010 15:20:21 +0000</pubDate>
<dc:creator>kirkland</dc:creator>
<guid isPermaLink="false">62@http://cos.name/en/</guid>
<description>&#60;p&#62;It's definitely easy. Find a reference book about SPSS and follow the instruction in it, you are sure to solve all your problems, though you might understand nothing about the underlying theories. Anyway, as long as you know how to interpret the results, everything will be fine.
&#60;/p&#62;</description>
</item>
<item>
<title>kirkland on "Welcome to COS (Capital of Statistics)"</title>
<link>http://cos.name/en/topic/1#post-61</link>
<pubDate>Tue, 20 Apr 2010 15:14:00 +0000</pubDate>
<dc:creator>kirkland</dc:creator>
<guid isPermaLink="false">61@http://cos.name/en/</guid>
<description>&#60;p&#62;This website is awesome!
&#60;/p&#62;</description>
</item>
<item>
<title>ryusukekenji on "free training for R-PLUS."</title>
<link>http://cos.name/en/topic/14#post-59</link>
<pubDate>Fri, 05 Feb 2010 09:53:14 +0000</pubDate>
<dc:creator>ryusukekenji</dc:creator>
<guid isPermaLink="false">59@http://cos.name/en/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://cos.name/bbs/read.php?tid=17606&#34; rel=&#34;nofollow&#34;&#62;http://cos.name/bbs/read.php?tid=17606&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I tried to browse over this website, while you may learn R and apply it on R-plus since its workable.&#60;/p&#62;
&#60;p&#62;R-plus gotta addon menu similar with S-plus, it will be more familiar for beginner who are not familiar with coding.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "free training for R-PLUS."</title>
<link>http://cos.name/en/topic/14#post-58</link>
<pubDate>Tue, 02 Feb 2010 13:21:33 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">58@http://cos.name/en/</guid>
<description>&#60;p&#62;R+ is the commercial product of the company XLSolutions, so you'd better ask them instead.&#60;/p&#62;
&#60;p&#62;R is free and you can also get free help here.
&#60;/p&#62;</description>
</item>
<item>
<title>peng on "free training for R-PLUS."</title>
<link>http://cos.name/en/topic/14#post-57</link>
<pubDate>Mon, 01 Feb 2010 06:09:12 +0000</pubDate>
<dc:creator>peng</dc:creator>
<guid isPermaLink="false">57@http://cos.name/en/</guid>
<description>&#60;p&#62;hi friends,&#60;br /&#62;
    I am new to R.I would like to know R-PLUS.Does any know where can I get the free training for R-PLUS.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Peng.
&#60;/p&#62;</description>
</item>
<item>
<title>Peter on "Welcome to COS (Capital of Statistics)"</title>
<link>http://cos.name/en/topic/1#post-56</link>
<pubDate>Thu, 21 Jan 2010 11:06:09 +0000</pubDate>
<dc:creator>Peter</dc:creator>
<guid isPermaLink="false">56@http://cos.name/en/</guid>
<description>&#60;p&#62;the forum is like a series of data instead of a simple chart,so... it is a little difficult for me to have a brief idea without the learning from COS in Chinese.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "List arguments from data frame columns in formula"</title>
<link>http://cos.name/en/topic/13#post-55</link>
<pubDate>Sat, 16 Jan 2010 13:01:38 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">55@http://cos.name/en/</guid>
<description>&#60;p&#62;just use '&#60;code&#62;y ~ .&#60;/code&#62;' as your formula; the dot '&#60;code&#62;.&#60;/code&#62;' means all the rest of variables in the data frame given in the &#60;code&#62;data =&#60;/code&#62; parameter.
&#60;/p&#62;</description>
</item>
<item>
<title>npobedina on "List arguments from data frame columns in formula"</title>
<link>http://cos.name/en/topic/13#post-54</link>
<pubDate>Tue, 12 Jan 2010 09:13:51 +0000</pubDate>
<dc:creator>npobedina</dc:creator>
<guid isPermaLink="false">54@http://cos.name/en/</guid>
<description>&#60;p&#62;Hi!&#60;br /&#62;
I'm trying to run logistic regression on a dataset which is contained in dataframe &#34;data&#34; (&#34;y&#34; is in the first col, and 28 parameters for the model).&#60;br /&#62;
How can I write formula for function &#60;code&#62;glm&#60;/code&#62; without listing explicitly all 28 paramaters?&#60;br /&#62;
&#60;code&#62;glm(data[,1]~data[,2]+data[,3]+data[,4]+...,family=binomial)&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;As an option I can use &#60;code&#62;glm.fit(data[,-1],data[,1],family = binomial(link=logit))&#60;/code&#62;. But the obtained object cannot be used in function &#60;code&#62;predict.glm&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Natalia
&#60;/p&#62;</description>
</item>
<item>
<title>lovebluesky on "The First R Code Here"</title>
<link>http://cos.name/en/topic/3#post-53</link>
<pubDate>Tue, 12 Jan 2010 03:38:29 +0000</pubDate>
<dc:creator>lovebluesky</dc:creator>
<guid isPermaLink="false">53@http://cos.name/en/</guid>
<description>&#60;p&#62;it's cool, i hope that i could reach your level some day
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "Welcome to COS (Capital of Statistics)"</title>
<link>http://cos.name/en/topic/1#post-52</link>
<pubDate>Fri, 18 Dec 2009 01:22:05 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">52@http://cos.name/en/</guid>
<description>&#60;p&#62;Thanks, &#38;amp; please bring more people here :-D
&#60;/p&#62;</description>
</item>
<item>
<title>guan on "Welcome to COS (Capital of Statistics)"</title>
<link>http://cos.name/en/topic/1#post-51</link>
<pubDate>Fri, 18 Dec 2009 00:42:27 +0000</pubDate>
<dc:creator>guan</dc:creator>
<guid isPermaLink="false">51@http://cos.name/en/</guid>
<description>&#60;p&#62;The English BBS should have some popularized...&#60;/p&#62;
&#60;p&#62;Today, I am here for support.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "Nonlinear color gradient in ggplot2"</title>
<link>http://cos.name/en/topic/12#post-50</link>
<pubDate>Thu, 03 Dec 2009 17:31:49 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">50@http://cos.name/en/</guid>
<description>&#60;p&#62;Sometimes we need to fill in our graphical elements with gradient colors according to a certain variable (say, &#60;code&#62;z&#60;/code&#62;). A special case is, &#60;code&#62;z&#60;/code&#62; consists of a majority of small values and a few large ones. If we use the linear gradient (default in &#60;code&#62;scale_fill_gradient()&#60;/code&#62; or &#60;code&#62;scale_colour_gradient()&#60;/code&#62;, i.e. &#60;code&#62;trans = &#38;quot;identity&#38;quot;&#60;/code&#62;), we will not be able to tell the differences among colors for points with many small &#60;code&#62;z&#60;/code&#62; values. E.g.&#60;/p&#62;
&#60;pre&#62;## make up some data
x = c(rnorm(100), 5:10)
## z contains 6 large values
z = c(runif(100, 0, 1.5), runif(6, 10, 15))

## gradient from red to green
qplot(x, z, colour = z) + scale_colour_gradient(low = &#34;red&#34;, high = &#34;green&#34;)
## cannot tell the difference even if using scale_colour_gradient2()
qplot(x, z, colour = z) + scale_colour_gradient2(low = &#34;red&#34;,
    mid = &#34;yellow&#34;, high = &#34;green&#34;, midpoint = 1.5)&#60;/pre&#62;
&#60;p&#62;However, we can log-transform &#60;code&#62;z&#60;/code&#62; to enlarge the difference among small values and make extremely large values much smaller. In this case, we can observe the gradient colors now:&#60;/p&#62;
&#60;pre&#62;qplot(x, z, colour = z) + scale_colour_gradient2(low = &#34;red&#34;,
    mid = &#34;yellow&#34;, high = &#34;green&#34;, midpoint = log(1.5), trans = &#34;log&#34;)
## or equivalently
qplot(x, z, colour = log(z)) + scale_colour_gradient2(low = &#34;red&#34;,
    mid = &#34;yellow&#34;, high = &#34;green&#34;, midpoint = log(1.5)) &#60;/pre&#62;
&#60;p&#62;Essentially we are using a nonlinear color interpolation (linear to &#60;code&#62;log(z)&#60;/code&#62;, nonlinear to &#60;code&#62;z&#60;/code&#62;).
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "Reshape the &#039;ratweight&#039; data into long format (Stat500)"</title>
<link>http://cos.name/en/topic/11#post-49</link>
<pubDate>Tue, 17 Nov 2009 18:19:27 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">49@http://cos.name/en/</guid>
<description>&#60;p&#62;The raw data is like this ( in a 'wide' format, see &#60;a href=&#34;http://www.public.iastate.edu/~pdixon/stat500/data/ratweight.txt&#34; rel=&#34;nofollow&#34;&#62;http://www.public.iastate.edu/~pdixon/stat500/data/ratweight.txt&#60;/a&#62; ):&#60;/p&#62;
&#60;pre&#62;high beef 73 102 118 104 81 107 100 87 117 111
high cereal 98 74 56 111 95 88 82 77 86 92
high pork 94 79 96 98 102 102 108 91 120 105
low beef 90 76 90 64 86 51 72 90 95 78
low cereal 107 95 97 80 98 74 74 67 89 58
low pork 49 82 73 86 81 97 106 70 61 82
&#60;/pre&#62;
&#60;p&#62;And we want to reshape it into this form:&#60;/p&#62;
&#60;pre&#62;amount type gain
high beef  73
high beef  102
high beef  118
high beef  104
high beef  81
high beef  107
high beef  100
high beef  87
high beef  117
high beef  111
high cereal  98
high cereal  74
....&#60;/pre&#62;
&#60;p&#62;My solution is (&#60;code&#62;reshape()&#60;/code&#62; is a function in base R):&#60;/p&#62;
&#60;pre&#62;&#60;em&#62;## the code is nearly plain English; see comments below if explanation needed&#60;/em&#62;
&#60;strong&#62;rat = read.table(&#34;http://pdixon.public.iastate.edu/stat500/data/ratweight.txt&#34;,
    col.names = c(&#34;amount&#34;, &#34;type&#34;, rep(&#34;gain&#34;, 10)))
rat2 = reshape(rat, varying = list(3:12), idvar = 1:2, direction = &#34;long&#34;)&#60;/strong&#62;
&#60;em&#62;## we know the column names are 'amount', 'type' and 'gain', so specify 'col.names'
## in read.table(); 'amount' and 'type' will be converted to factors by default
## because they are characters (which helps in aov() and lm()). we know the first
## 2 columns are id variables (combinations of treatment levels) and 3:12 columns
## are measurements; we want to reshape the 'wide' data into 'long' format.

## if we want to order the data according to 'amount' and 'type', just order() it;
## the order does not matter in data analysis after all.
## want to drop the 'time' variable? drop it with a negative index&#60;/em&#62;
#  rat2 = with(rat2, rat2[order(amount, type), -3])

&#60;em&#62;## annoying row names? set them to NULL; again, row names does not matter&#60;/em&#62;
#  rownames(rat2) = NULL

&#60;em&#62;## we may begin ANOVA now&#60;/em&#62;
#  aov(gain ~ amount * type, rat2)
&#60;/pre&#62;
&#60;p&#62;I guess Stat579 students have other neat approaches to reshape this dataset. So I'm looking forward to solutions from Hadley's &#60;code&#62;reshape&#60;/code&#62; package :)&#60;/p&#62;
&#60;p&#62;BTW, in case of unequal numbers per treatment, we may specify &#60;code&#62;fill = TRUE&#60;/code&#62; in &#60;code&#62;read.table()&#60;/code&#62; so that &#34;blank cells&#34; will be filled with &#60;code&#62;NA&#60;/code&#62;'s. In the end we can omit the missing cells with &#60;code&#62;na.omit()&#60;/code&#62;.
&#60;/p&#62;</description>
</item>
<item>
<title>gradian on "I need help on SPSS"</title>
<link>http://cos.name/en/topic/2#post-48</link>
<pubDate>Wed, 04 Nov 2009 04:51:12 +0000</pubDate>
<dc:creator>gradian</dc:creator>
<guid isPermaLink="false">48@http://cos.name/en/</guid>
<description>&#60;p&#62;it's possible :)&#60;br /&#62;
he/she needs to learn only application of tests not theorical basis :D
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-47</link>
<pubDate>Thu, 22 Oct 2009 18:59:16 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">47@http://cos.name/en/</guid>
<description>&#60;p&#62;I'm really excited to see the first guest coming!!&#60;/p&#62;
&#60;p&#62;I started a new topic here: &#60;a href=&#34;http://cos.name/en/topic/re-how-to-compute-weighted-cross-tabulation-to-sazimme2&#34; rel=&#34;nofollow&#34;&#62;http://cos.name/en/topic/re-how-to-compute-weighted-cross-tabulation-to-sazimme2&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "Re: how to compute weighted cross tabulation (to sazimme2)"</title>
<link>http://cos.name/en/topic/10#post-46</link>
<pubDate>Thu, 22 Oct 2009 18:57:12 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">46@http://cos.name/en/</guid>
<description>&#60;p&#62;To sazimme2: I'm not sure I've understood your question well; here is an example for weighted cross tabulation.&#60;/p&#62;
&#60;pre&#62;# to be reproducible, set the random seed first
#     so you'll get the same random numbers
&#60;strong&#62;set.seed(123)&#60;/strong&#62;
# generate a random data frame for demo purpose
&#60;strong&#62;dat = data.frame(
    sex = factor(sample(c(&#34;Male&#34;, &#34;Female&#34;), 50,
          replace = TRUE)),
    answer = factor(sample(c(&#34;Yes&#34;, &#34;No&#34;), 50,
          replace = TRUE)),
    weight = sample(1:10, 50, replace = TRUE)
)&#60;/strong&#62;
# &#60;code&#62;dat&#60;/code&#62; looks like this
&#60;strong&#62;head(dat)&#60;/strong&#62;
&#60;em&#62;     sex answer weight
1   Male    Yes      6
2 Female    Yes      4
3   Male     No      5
4 Female    Yes     10
5 Female     No      5
6   Male    Yes      9
&#60;/em&#62;
# ordinary table without weights
# i don't want to write dat$something, so use with()
&#60;strong&#62;with(dat, table(sex, answer))&#60;/strong&#62;
&#60;em&#62;        answer
sex      No Yes
  Female 12  13
  Male   10  15
&#60;/em&#62;
# ordinary table is equavalent to vector *length* of each cross-group
#     or, weight = 1 for each case
&#60;strong&#62;with(dat, aggregate(weight, list(sex = sex, answer = answer),
    length))&#60;/strong&#62;
&#60;em&#62;     sex answer  x
1 Female     No 12
2   Male     No 10
3 Female    Yes 13
4   Male    Yes 15
&#60;/em&#62;
# table with weights: just sum up weights for each cell
&#60;strong&#62;(wtable = with(dat, aggregate(weight, list(sex = sex,
    answer = answer), sum)))&#60;/strong&#62;
&#60;em&#62;     sex answer  x
1 Female     No 77
2   Male     No 63
3 Female    Yes 75
4   Male    Yes 69
&#60;/em&#62;
# need 2x2 matrix form?
&#60;strong&#62;matrix(wtable$x, nrow = 2, ncol = 2, dimnames = list(levels(dat$sex),
    levels(dat$answer)))&#60;/strong&#62;
&#60;em&#62;       No Yes
Female 77  75
Male   63  69
&#60;/em&#62;

#~~~~~~~~~~~~~~~~~~~~~~~~~reshape~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# well, i'm behind the times now; you guys are learning more
#     advanced tools in 579 - let's do it with cast() in reshape
#     rather than the traditional aggregate()
&#60;strong&#62;library(reshape)
cast(dat, sex ~ answer, sum, value = &#34;weight&#34;)&#60;/strong&#62;
&#60;em&#62;     sex No Yes
1 Female 77  75
2   Male 63  69
&#60;/em&#62;
&#60;/pre&#62;
&#60;p&#62;Sorry the code looks wordy. I just want to make the process clear and solutions diversified. Take a quick look at the reshape part if you want to reach the solution directly :)
&#60;/p&#62;</description>
</item>
<item>
<title>sazimme2 on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-45</link>
<pubDate>Thu, 22 Oct 2009 10:00:32 +0000</pubDate>
<dc:creator>sazimme2</dc:creator>
<guid isPermaLink="false">45@http://cos.name/en/</guid>
<description>&#60;p&#62;I am trying to do a cross tabulation of two variables. Sex and the answer to a survey question. Both variables are factors. This is easy to do using the table function. The problem is that these respondents have weights. Table does not have an option to put in weights. Any ideas? Thanks! I'm in ST 579 so relatively new to R so explanations where you explain why I should do what I should would be appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-44</link>
<pubDate>Sun, 11 Oct 2009 22:37:34 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">44@http://cos.name/en/</guid>
<description>&#60;p&#62;Yes I also noticed this phenomenon long ago. Is that something called &#34;double-buffering&#34; which R does not support?
&#60;/p&#62;</description>
</item>
<item>
<title>yanlinlin82 on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-43</link>
<pubDate>Sun, 11 Oct 2009 19:53:46 +0000</pubDate>
<dc:creator>yanlinlin82</dc:creator>
<guid isPermaLink="false">43@http://cos.name/en/</guid>
<description>&#60;p&#62;The effect of the code running in Windows is much better than in Linux. I tried a lot but still can not find any way to avoid the flicker when drawing repeatedly in Linux.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-42</link>
<pubDate>Sat, 10 Oct 2009 19:56:56 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">42@http://cos.name/en/</guid>
<description>&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Another silly demo to show how &#60;code&#62;xlim&#60;/code&#62; works:&#60;/p&#62;
&#60;pre&#62;par(mar = rep(0, 4))
for (i in 1:200) {
    plot(1, xlim = c(0, 2), ann = F, type = &#34;n&#34;, axes = F, xaxs = &#34;i&#34;)
    text(2 - i/200 * 3, 1, &#34;happy_rabbit -___-//&#34;, col = topo.colors(200)[i],
        cex = 3)
    Sys.sleep(0.02)
} &#60;/pre&#62;</description>
</item>
<item>
<title>happy_rabbit on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-41</link>
<pubDate>Sat, 10 Oct 2009 16:17:48 +0000</pubDate>
<dc:creator>happy_rabbit</dc:creator>
<guid isPermaLink="false">41@http://cos.name/en/</guid>
<description>&#60;p&#62;up~up~
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "For Stat579 Students @ ISU (2009 Fall)"</title>
<link>http://cos.name/en/topic/9#post-40</link>
<pubDate>Wed, 07 Oct 2009 21:59:31 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">40@http://cos.name/en/</guid>
<description>&#60;p&#62;We will try our best to offer additional help for learning R in this forum. Questions and discussions are warmly welcome!&#60;/p&#62;
&#60;pre&#62;par(mar = rep(0, 4))
for (i in 1:360) {
     plot(1, ann = F, type = &#34;n&#34;, axes = F)
     text(1, 1, &#34;Welcome&#34;, srt = i,
         col = rainbow(360)[i], cex = 7 * i/360)
     Sys.sleep(0.01)
}&#60;/pre&#62;</description>
</item>
<item>
<title>yihui on "How to install a package named &#34;labdsv&#34;?"</title>
<link>http://cos.name/en/topic/8#post-39</link>
<pubDate>Fri, 28 Aug 2009 10:27:37 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">39@http://cos.name/en/</guid>
<description>&#60;p&#62;&#60;code&#62;install.packages(&#38;#39;labdsv&#38;#39;)&#60;/code&#62; if it's on CRAN; otherwise you have to download the &#60;em&#62;Windows Binary&#60;/em&#62; package (*.zip) and use the menu in RGui to install it.
&#60;/p&#62;</description>
</item>
<item>
<title>lqfcb on "How to install a package named &#34;labdsv&#34;?"</title>
<link>http://cos.name/en/topic/8#post-38</link>
<pubDate>Fri, 28 Aug 2009 03:09:17 +0000</pubDate>
<dc:creator>lqfcb</dc:creator>
<guid isPermaLink="false">38@http://cos.name/en/</guid>
<description>&#60;p&#62;I have downloaded this package in d:/my documents, but I cannot install it to R, although I see the help. Please write the command for me. Thanks a lot!
&#60;/p&#62;</description>
</item>
<item>
<title>yanlinlin82 on "The First R Code Here"</title>
<link>http://cos.name/en/topic/3#post-36</link>
<pubDate>Mon, 22 Jun 2009 20:56:44 +0000</pubDate>
<dc:creator>yanlinlin82</dc:creator>
<guid isPermaLink="false">36@http://cos.name/en/</guid>
<description>&#60;p&#62;Yes, with the very flexible interface, R can do almost everything in computer if you want. However, some of the things doing by R are not the best solutions. We were just trying to show off the tricks, which may attract people into R community.&#60;/p&#62;
&#60;p&#62;Everything in western sciences is learnable. R is not difficult to a medical student, since there are so many applications of statistical analysis in the field, and I think you may have already learned some of the methods in your course. That's enough to enter the R world.
&#60;/p&#62;</description>
</item>
<item>
<title>achates on "The First R Code Here"</title>
<link>http://cos.name/en/topic/3#post-35</link>
<pubDate>Sun, 21 Jun 2009 19:03:47 +0000</pubDate>
<dc:creator>achates</dc:creator>
<guid isPermaLink="false">35@http://cos.name/en/</guid>
<description>&#60;p&#62;Your guys are amazing! It seems R could do everything~~really? I can't help thinking it . Is it difficult to understand and apply to for a medical student? You know, in clinic there are many procedures like disease recurrence and wound recovery, and there are many influence and questions , need to solve. haha, was I too greedy? I am just a medical man knowing a little about math and computer.
&#60;/p&#62;</description>
</item>
<item>
<title>yihui on "Shut Down Your Windows with R"</title>
<link>http://cos.name/en/topic/7#post-34</link>
<pubDate>Sat, 20 Jun 2009 07:55:23 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">34@http://cos.name/en/</guid>
<description>&#60;p&#62;I realized the argument &#60;code&#62;timeout&#60;/code&#62; is unnecessary, so this will be enough:&#60;/p&#62;
&#60;pre&#62;shutdown &#38;lt;-
function(wait = 0) {
    Sys.sleep(wait)
    ifelse(.Platform$OS.type == &#34;windows&#34;, shell(&#34;shutdown -s -t 0&#34;),
        system(&#34;shutdown -h now&#34;))
}&#60;/pre&#62;
&#60;p&#62;This function has gone to &#60;code&#62;fun&#60;/code&#62; now. You can see it in R-Forge.
&#60;/p&#62;</description>
</item>
<item>
<title>Taiyun on "Shut Down Your Windows with R"</title>
<link>http://cos.name/en/topic/7#post-33</link>
<pubDate>Sat, 20 Jun 2009 06:05:01 +0000</pubDate>
<dc:creator>Taiyun</dc:creator>
<guid isPermaLink="false">33@http://cos.name/en/</guid>
<description>&#60;p&#62;Cool, Wonderful job!
&#60;/p&#62;</description>
</item>
<item>
<title>yanlinlin82 on "Shut Down Your Windows with R"</title>
<link>http://cos.name/en/topic/7#post-32</link>
<pubDate>Sat, 20 Jun 2009 04:21:29 +0000</pubDate>
<dc:creator>yanlinlin82</dc:creator>
<guid isPermaLink="false">32@http://cos.name/en/</guid>
<description>&#60;p&#62;Linux use the 'shutdown' command too, but with different parameters.&#60;/p&#62;
&#60;p&#62;We can use following command to shutdown immediately:&#60;br /&#62;
&#60;code&#62;$ shutdown -h now&#60;/code&#62;&#60;br /&#62;
Or following command to shutdown after 30 minutes:&#60;br /&#62;
&#60;code&#62;$ shutdown -h +30&#60;/code&#62;&#60;br /&#62;
Or shutdown at 23:30:&#60;br /&#62;
&#60;code&#62;$ shutdown -h 23:30&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;So the function can be:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;shutdown = function(wait = 0, timeout = 10) {
  Sys.sleep(wait)
  shell(
    paste(sep = &#38;quot;&#38;quot;,
      &#38;quot;shutdown &#38;quot;,
      switch(.Platform$OS.type,
        windows = sprintf(&#38;quot;-s -t %d&#38;quot;, timeout),
        unix = &#38;quot;-h now&#38;quot;)
      )
    )
}
shutdown()&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>yihui on "Shut Down Your Windows with R"</title>
<link>http://cos.name/en/topic/7#post-31</link>
<pubDate>Sat, 20 Jun 2009 00:54:03 +0000</pubDate>
<dc:creator>yihui</dc:creator>
<guid isPermaLink="false">31@http://cos.name/en/</guid>
<description>&#60;p&#62;Because we can shut down the Windows system by the command &#60;code&#62;shutdown&#60;/code&#62;, we may also use the R function &#60;code&#62;shell()&#60;/code&#62; to execute the command. For instance, &#60;code&#62;shell(&#38;quot;shutdown -s -t 10&#38;quot;)&#60;/code&#62; will shut down your computer after 10 seconds (DON'T run the code before you have saved and closed all the programs - I'll not be responsible for your data lost!). If you regret doing so, you can execute &#60;code&#62;shell(&#38;quot;shutdown -a&#38;quot;)&#60;/code&#62; immediately.&#60;/p&#62;
&#60;p&#62;I'm not sure whether the command is the same under Linux. (AFAIR, it's the same command but with different options?)&#60;/p&#62;
&#60;p&#62;We may include this function in the package &#60;code&#62;fun&#60;/code&#62; as well:&#60;/p&#62;
&#60;pre&#62;shutdown = function(wait = 0,  timeout = 10) {
    Sys.sleep(wait)
    # .Platform$OS.type? Windows? Linux?
    shell(sprintf(&#34;shutdown -s -t %d&#34;, timeout))
}
&#60;/pre&#62;
&#60;p&#62;I think this function can be useful when we want our computer to be shut down automatically after a (time-consuming) task.
&#60;/p&#62;</description>
</item>
<item>
<title>achates on "What is the meaning of this output?"</title>
<link>http://cos.name/en/topic/6#post-30</link>
<pubDate>Thu, 18 Jun 2009 21:05:10 +0000</pubDate>
<dc:creator>achates</dc:creator>
<guid isPermaLink="false">30@http://cos.name/en/</guid>
<description>&#60;p&#62;I do some research works using Logistic Regression by SPSS 17. &#60;/p&#62;
&#60;p&#62;10 predictors (5 numeric and 5 nominal )and 1 dependent(3 groups). 128 cases.&#60;/p&#62;
&#60;p&#62;After calculation, output remind me like that:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
There are 256(66.7%)cells(dependent variables by subpopulations) with zero frequencies.Unexpected singularities in Hessian matrix are encountered. This indicates that either some predictor variables should be excluded or some categories should be merged.The NOMREG procedure continues despite the above warnings. Subsequent results shown are based on the last iteration. Validity of the model fit is uncertain.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Does it mean that something happened cause some empty cells? Yes, there are indeed some empty cells . Do I need delete those cases?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
