<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general">
    <title>gmane.comp.lang.r.general</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264329"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264328"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264327"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264326"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264325"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264324"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264323"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264322"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264321"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264320"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264319"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264318"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264317"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264316"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264315"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264314"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264313"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264312"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264311"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.r.general/264310"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264329">
    <title>glmnet object to pmml</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264329</link>
    <description>&lt;pre&gt;Dear R users

I generated a model using glmnet, I need to convert it to pmml, but R pmml
package doesn't support glmnet, has anyone come across similar problem? any
idea to solve it?

Many thanks

YAn

--
View this message in context: http://r.789695.n4.nabble.com/glmnet-object-to-pmml-tp4630493.html
Sent from the R help mailing list archive at Nabble.com.

&lt;/pre&gt;</description>
    <dc:creator>yan</dc:creator>
    <dc:date>2012-05-18T12:23:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264328">
    <title>Re: Complex sort problem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264328</link>
    <description>&lt;pre&gt;
The suggestion

  set.seed(12345)
  x &amp;lt;- sample(0:100, 10)
  x.order &amp;lt;- order(x)
  x.sorted &amp;lt;- x[x.order]

  sample.ind &amp;lt;- sample(1:length(x), 5, replace = TRUE)  #sample 1/2 size with replacement

  x.sample &amp;lt;- x.sorted[sample.ind]
  freq &amp;lt;- tabulate(sample.ind, nbins=length(x))
  x.sample.sorted &amp;lt;- rep(x.sorted, times=freq)

uses the fact that rep(x.sorted, times=freq) keeps the order
in x.sorted. This x.sorted can be a data frame, in which
case we should use 

  sample.ind &amp;lt;- sample(1:nrow(x), 5, replace = TRUE)
  x.sample &amp;lt;- x.sorted[sample.ind, ]
  freq &amp;lt;- tabulate(sample.ind, nbins=nrow(x))
  x.sample.sorted &amp;lt;- x.sorted[rep(1:nrow(x.sorted), times=freq), ]

It is possible to have several x.sorted data frames sorted according
to different variables. In this case, we generate pairs x.sample and
x.sample.sorted which are the same sample once unsorted and once sorted.
However, we get different samples for each sorting variable.

In order to save CPU time, if the same sample should be sortable
by different&lt;/pre&gt;</description>
    <dc:creator>Petr Savicky</dc:creator>
    <dc:date>2012-05-18T11:48:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264327">
    <title>Re: MANOVA with random factor</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264327</link>
    <description>&lt;pre&gt;I suppose you mean this:
http://www.r-project.org/doc/Rnews/Rnews_2007-2.pdf

Another approach, less general but in my opinion easier to use (and
equivalent in many situations), is provided by Anova() in package car.
See:
http://socserv.mcmaster.ca/jfox/Books/Companion/appendix/Appendix-Multivariate-Linear-Models.pdf

The package ez also has ezANOVA(), a wrapper to Anova() that may
simplify the task for full factorial designs.

Helios De Rosario



&amp;lt;David.Costantini&amp;lt; at &amp;gt;glasgow.ac.uk&amp;gt; escribió:
group*sex) and
does 

INSTITUTO DE BIOMECÁNICA DE VALENCIA
Universidad Politécnica de Valencia • Edificio 9C
Camino de Vera s/n • 46022 VALENCIA (ESPAÑA)
Tel. +34 96 387 91 60 • Fax +34 96 387 91 69
www.ibv.org

  Antes de imprimir este e-mail piense bien si es necesario hacerlo.
En cumplimiento de la Ley Orgánica 15/1999 reguladora de la Protección
de Datos de Carácter Personal, le informamos de que el presente mensaje
contiene información confidencial, siendo para uso exclusivo del
destinatario arriba indi&lt;/pre&gt;</description>
    <dc:creator>Helios de Rosario</dc:creator>
    <dc:date>2012-05-18T10:53:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264326">
    <title>Re: Complex sort problem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264326</link>
    <description>&lt;pre&gt;Would I be able to accomplish the same if x.sample was created from x
instead of x.sorted. The problem is that in my real problem, I have to sort
with respect to many variables and thus keep the sample indexes consistent
across variables. So I need to first take the sample and then sort it
with respect to potentially any variable.

Thanks again,
Axel.

On Thu, May 17, 2012 at 1:43 PM, Petr Savicky &amp;lt;savicky&amp;lt; at &amp;gt;cs.cas.cz&amp;gt; wrote:


[[alternative HTML version deleted]]

&lt;/pre&gt;</description>
    <dc:creator>Axel Urbiz</dc:creator>
    <dc:date>2012-05-18T10:37:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264325">
    <title>Re: Financial Statements Date Subsetting</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264325</link>
    <description>&lt;pre&gt;You're leaving out a step -- take a look at the examples for viewFin
and note that you have to download the financial data first with
getFin()

Michael

On Thu, May 17, 2012 at 9:53 PM, Brian Edmundson
&amp;lt;brianedmundson1&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>R. Michael Weylandt</dc:creator>
    <dc:date>2012-05-18T10:26:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264324">
    <title>Re: Proc AutoReg (SAS like Output in R)</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264324</link>
    <description>&lt;pre&gt;Well, the easiest way would be to use SAS ;-)

In R take a look at the ar() function. You can view documentation by
typing ?ar at the console and see some worked examples by running
example(ar)

Hope this helps,
Michael

On Fri, May 18, 2012 at 12:11 AM, anil &amp;lt;anilshivkumar&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>R. Michael Weylandt</dc:creator>
    <dc:date>2012-05-18T10:23:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264323">
    <title>Re: Optimization inconsistencies</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264323</link>
    <description>&lt;pre&gt;
Hi.

As Peter Dalgaard suggested, lpSolve may be used. If "low" may contain
negative values, then it is important to note that lpSolve assumes
all variables nonnegative. So, a transformation is needed, for example
x = low + y and solve for y. The following is one approach.

  library(lpSolve)
 
  n &amp;lt;- 8
  w &amp;lt;- 1:n
  low &amp;lt;- rep(-1, times=n)
  high &amp;lt;- rep(1, times=n)
 
  crit &amp;lt;- w
  mat &amp;lt;- rbind(diag(n), 1)
  rhs &amp;lt;- c(high - low, 1 - sum(low))
  dir &amp;lt;- c(rep("&amp;lt;=", times=n), "==")
 
  out &amp;lt;- lp("max", objective.in=crit, const.mat=mat, const.dir=dir, const.rhs=rhs)
  x &amp;lt;- low + out$solution

  round(x, digits=15)

  [1] -1 -1 -1  0  1  1  1  1

Hope this helps.

Petr Savicky.

&lt;/pre&gt;</description>
    <dc:creator>Petr Savicky</dc:creator>
    <dc:date>2012-05-18T09:42:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264322">
    <title>Natural Language Toolkit for R - is it still there?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264322</link>
    <description>&lt;pre&gt;Hi

I used the package Natural Language Toolkit about a year ago to parse
strings into parts of speech. However, I cannot find it on CRAN.

Has it been withdrawn?

Thanks

Nick

&lt;/pre&gt;</description>
    <dc:creator>Nick Riches</dc:creator>
    <dc:date>2012-05-18T09:41:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264321">
    <title>Re: Optimization inconsistencies</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264321</link>
    <description>&lt;pre&gt;

Same as before:
Would you *please* post data and code, as the posting guide requests!

The variable that is left out still has some (linear) inequalities to fullfil. 
I didn't understand how you worked that out with optim() as it only allows to
include box constraints.

Hans Werner


______________________________________________
R-help&amp;lt; at &amp;gt;r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
&lt;/pre&gt;</description>
    <dc:creator>Hans W Borchers</dc:creator>
    <dc:date>2012-05-18T08:33:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264320">
    <title>Re: Optimization inconsistencies</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264320</link>
    <description>&lt;pre&gt;
On May 18, 2012, at 09:10 , Hans W Borchers wrote:


I considered making a similar remark, then realized that lpSolve actually allows equality constraints, so why not just use the tool that is designed for the job?



However, with a linear objective function, the Hessian is 0 and the maximum is attained at a corner point, which is likely to confuse algorithms that expect a locally quadratic function. 


Yes, also from the development perspective. We need to see more of these hard examples. 



&lt;/pre&gt;</description>
    <dc:creator>peter dalgaard</dc:creator>
    <dc:date>2012-05-18T08:31:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264319">
    <title>High Frequency Data</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264319</link>
    <description>&lt;pre&gt;Is there any way to analyse high frequency data in R like
cleaning,manipulation and volatility etc.I know there are packages like
RTAQ and Realized for analysing high frequency data but they are only valid
for NYSE stocks and have well defined data format.

Please help.

[[alternative HTML version deleted]]

&lt;/pre&gt;</description>
    <dc:creator>rahul deora</dc:creator>
    <dc:date>2012-05-18T07:52:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264318">
    <title>Re: Optimization inconsistencies</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264318</link>
    <description>&lt;pre&gt;Le 18/05/12 00:14, Nathan Stephens a écrit :
I had similar problem to solve (x were frequencies) and optimization 
stops before to reach the global maximum. As hwborchers&amp;lt; at &amp;gt;googlemail.com 
indicates, I fitted {x}-1 values because the last one is known by the 
equality constraint.
For the vector constraints, I used w &amp;lt;- -Inf when x goes out of the limits.

Finally I used Bayesian mcmc to get the convergence and it works much 
better.

I don't know why in this case the optim does not converge.

Hope it hepls,

Marc

&lt;/pre&gt;</description>
    <dc:creator>Marc Girondot</dc:creator>
    <dc:date>2012-05-18T07:38:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264317">
    <title>Re: glm convergence warning</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264317</link>
    <description>&lt;pre&gt;
Actually, no, it did not.  The actual message is

 &amp;gt; Warning: glm.fit: algorithm did not converge

Had you shown us that rather than misquote it, all would have been clearer.

warning "algorithm did not converge" is produced. Could someone help me
understand why I get this result?

Because there are two fits involved, and one of them does not converge. 
  Because you have an intercept and offset in your model, the null fit 
also needs to be done, and that fit did not converge.

So the main results from your fit are reliable, but the null.deviance 
component is not.  Increase maxit to allow the null fit to converge.




&lt;/pre&gt;</description>
    <dc:creator>Prof Brian Ripley</dc:creator>
    <dc:date>2012-05-18T07:36:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264316">
    <title>Re: Optimization inconsistencies</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264316</link>
    <description>&lt;pre&gt;
Use the equality constraint to reduce the dimension of the problem by one.
Then formulate the inequality constraints and apply, e.g., constrOptim().
You can immediately write down and use the gradient, so method "L-BFGS-B" is
appropriate.

Because the problem is linear, there is only one maximum and no dependency
on starting values. 

If you had supplied some data and code (which packages did you try, and how?),
a more concrete answer would have been possible. My own test example worked
out of the box.

Hans Werner



&lt;/pre&gt;</description>
    <dc:creator>Hans W Borchers</dc:creator>
    <dc:date>2012-05-18T07:10:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264315">
    <title>Re: Integration of two dimension function</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264315</link>
    <description>&lt;pre&gt;
Hi.

The function f() is a 0/1 function. So, the integral may be 
reformulated as the area of the set of points (x, y) satisfying

  0.2 &amp;lt;= x &amp;lt;= 0.8
  0   &amp;lt;= y &amp;lt;= 1
  x*y &amp;lt;= c

In other words, it is the univariate integral of the function

  g(x) = min(1, c/x)

over the range x \in [0.2, 0.8]. This is 
     
  G &amp;lt;- function(cc) {
    ifelse(cc &amp;lt;= 0.2, cc*log(4), # cc*(log(0.8) - log(0.2))
           ifelse(0.2 &amp;lt; cc &amp;amp; cc &amp;lt; 0.8, (cc - 0.2) + cc*(log(0.8) - log(cc)), 0.8 - 0.2))
  }

What i get is that G(cc) = 0.025 for cc = 0.025/log(4).

I hope there are not too may errors in this calculation.

Petr Savicky.

&lt;/pre&gt;</description>
    <dc:creator>Petr Savicky</dc:creator>
    <dc:date>2012-05-18T06:51:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264314">
    <title>Proc AutoReg (SAS like Output in R)</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264314</link>
    <description>&lt;pre&gt;Hi,

I want to find out, how can i get a SAS like output for Proc Autoreg with
AR(1) and AR(2) terms.


Thanks...

--
View this message in context: http://r.789695.n4.nabble.com/Proc-AutoReg-SAS-like-Output-in-R-tp4630468.html
Sent from the R help mailing list archive at Nabble.com.

&lt;/pre&gt;</description>
    <dc:creator>anil</dc:creator>
    <dc:date>2012-05-18T04:11:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264313">
    <title>Covariance matrix in R with non-numeric variables</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264313</link>
    <description>&lt;pre&gt;Dear R help forum members,

I am modeling a gaussian distribution for a computational biology application and I am working in the statistical package "R". In this regard, my problem is that I have to construct a covariance matrix with variables (non-numeric) and the covariance matrix is to be used in an maximizers of the likelihood function to predict the variables in the matrix. I am unable to do that because I do not have an idea of how to construct a covariance matrix with non-numeric variable in the matrix.

Any help in this regard will be highly appreciated.

Thanks in advance.

Regards, B.Nataraj


[[alternative HTML version deleted]]

&lt;/pre&gt;</description>
    <dc:creator>nataraj&lt; at &gt;orchidpharma.com</dc:creator>
    <dc:date>2012-05-18T04:33:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264312">
    <title>Re: Correlation Matrix</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264312</link>
    <description>&lt;pre&gt;thanks a lot dear. I will keep your advice in my mind.

--
View this message in context: http://r.789695.n4.nabble.com/Correlation-Matrix-tp4630389p4630448.html
Sent from the R help mailing list archive at Nabble.com.

&lt;/pre&gt;</description>
    <dc:creator>mahdi</dc:creator>
    <dc:date>2012-05-17T20:37:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264311">
    <title>Financial Statements Date Subsetting</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264311</link>
    <description>&lt;pre&gt;Dear All,

I'm new at R, but I really just need a couple of things.  The first thing I
need is to figure out how to get each individual financial statement
(CF,BS,IS).  I need each individual one because getting them all at once
allows for formatting issues once it is a CSV.  The date subsetting is what
I need because I will be running a statistical model in excel.  I know I
could probably build a cleaner model in R, but I have already built it in
excel.

The first place I am stuck at is actually viewing the financials. I have
gotten it to work a few times, but i am trying to script the installation
sequence ( I still assume I have to load the packages as well - which I
have done).

I have tried this sequence downloading straight from the - i think - the
CRAN mirror and I have also tried downloading this sequence straight from
R-Project.com...

install.packages("TTR")
install.packages("zoo")
install.packages("Defaults")
install.packages("xts")
install.packages("quantmod")

this still (from both downloading s&lt;/pre&gt;</description>
    <dc:creator>Brian Edmundson</dc:creator>
    <dc:date>2012-05-18T01:53:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264310">
    <title>Correlation in Rattle</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264310</link>
    <description>&lt;pre&gt;Hi,

I recently installed Rattle for R 2.15.0 and all the functions work properly except for the Correlation button. After I choose the Correlation radio button in Explore tab, I click Execute, but nothing happens. No results at all. What is it that I am missing?

Thank you,
Avideh

[[alternative HTML version deleted]]

&lt;/pre&gt;</description>
    <dc:creator>avideh yesharim</dc:creator>
    <dc:date>2012-05-17T21:32:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.r.general/264309">
    <title>Re: Failure building any package</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.r.general/264309</link>
    <description>&lt;pre&gt;Hi Noah,

Can you put your package on github or at least upload the tar ball?
Although I agree with Steven that as is, the package will not pass
cran checks, that is not the error I would expect.

Some of the experts may have seen this before or know instantly, but
for everyone else, being able to try what you are trying may help.
Its also not a bad idea to have your code hosted somewhere anyway, so
you can slice two beets with one stroke as it were.

Cheers,

Josh

On Thu, May 17, 2012 at 7:44 PM, Noah Silverman &amp;lt;noahsilverman&amp;lt; at &amp;gt;ucla.edu&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Joshua Wiley</dc:creator>
    <dc:date>2012-05-18T04:10:39</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.r.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.r.general</link>
  </textinput>
</rdf:RDF>

