[R] Infinite loop running Mod_R/Rapache

2006-02-03 Thread BJ
I installed mod_r according to the specifications, and have been trying 
to get the demo script to work correctly. I am running debian, the 
latest build of R, apache 2 with prefork mpm, and the latest mod_r. Is 
anyone else using this module successfully? I added:

LoadModule R_module mod_R.so
Location /test/hello
SetHandler r-handler
Rsource /var/www/html/test.R
RreqHandler handler
/Location

to my http.conf and

test.R in /var/www/html is:

handler-function(r){
apache.write(r,h1Hello World!/h1)
OK
}

When I start apache2, my /tmp directory fills with rtmp directories 
until memory is exausted. The first time it created 32,000 before I 
noticed. Does anyone have any idea as to what I could be doing wrong, or 
have a software configuration that works? Thank you for all of your 
help. ~BJ

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] plotting box plots on same x

2005-05-27 Thread BJ
I am trying to construct a graph of 6 box plots of blood pressures. I 
want them to be on a single set of axis and I want the SBP to be ontop 
of the DBP. I have an array bp with the data in it and I tried


a[1,]-c(145,60,147,62,140,57)
a[2,]-c(160,75,160,74,160,70)
a[3,]-c(140,55,140,65,142,55)
boxplot(data.frame(a), main = Blood Pressures, at=c(1,1,2,2,3,3), 
names=c(sit,,lie,,stand,))


which is close to what I want, but it gives me a bunch of empty space at 
the end. is there a better way to do this to avoid this?


As always, Thank You. ~Erithid

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] box plots without whiskers

2005-05-27 Thread BJ
I searched the archives, but couldnt find any way to do this with 
boxplot. Is there a way? Thanks again ~BJ


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] box plots without whiskers

2005-05-27 Thread BJ
Hmm ok, that seems to work with that example, but when I add an at= 
option i get graphs that are only verticle lines. Sorry to be difficult. ~BJ


Uwe Ligges wrote:


BJ wrote:

I searched the archives, but couldnt find any way to do this with 
boxplot. Is there a way? Thanks again ~BJ



See ?boxplot and its argument par which points you to ?bxp:

Now, you can do stuff like
  boxplot(1:10, pars=list(staplelty=0, whisklty=0))

Uwe Ligges




__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html






__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] box plots without whiskers]

2005-05-27 Thread BJ


---BeginMessage---

 boxplot(data.frame(1:10, 2:11), at = 1:2,
+   pars=list(staplelty=0, whisklty=0), at=1:2)
Error in boxplot.default(data.frame(1:10, 2:11), at = 1:2, pars = 
list(staplelty = 0,  :

   formal argument at matched by multiple actual arguments

a-array(dim=c(3,8))
a[1,]-c(140,60,145,60,147,62,140,57)
a[2,]-c(160,70,160,75,160,74,160,70)
a[3,]-c(140,60,140,55,140,65,142,55)
plot.new()
boxplot(data.frame(a),pars=list(staplelty=0, whisklty=0), main = 
Boxplots, at=c(1,1,4,4,6,6,8,8), names=c(Base 
Line,,Sit,,Stand,,Lie,),ylab=DBP
SBP)


This does not work. The output is a collection of verticle lines that 
are as long as the boxes should be.


boxplot(data.frame(a),staplelty=0, whisklty=0, main = Boxplots, 
at=c(1,1,4,4,6,6,8,8), names=c(Base 
Line,,Sit,,Stand,,Lie,),ylab=DBP
SBP)


does though. So I thank you for your help. Didnt mean to get yellled at 
over what seemed like a decent question. The mailing list archives say 
you have to use the lattice package to achieve the effect I wanted.. 
Anyhow. Sorry to everyone else for the excessive trafffic. ~Erithid



Uwe Ligges wrote:


BJ wrote:

Hmm ok, that seems to work with that example, but when I add an at= 
option i get graphs that are only verticle lines. Sorry to be difficult. 




He? So you need to pe much more precisely in this message as well!

boxplot(data.frame(1:10, 2:11), at = 1:2,
  pars=list(staplelty=0, whisklty=0), at=1:2)

works perfectly for me! People are not that happy to invest their time 
for helping you on bad specified problems...


*REALLY*:
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

Uwe Ligges




~BJ

Uwe Ligges wrote:


BJ wrote:

I searched the archives, but couldnt find any way to do this with 
boxplot. Is there a way? Thanks again ~BJ





See ?boxplot and its argument par which points you to ?bxp:

Now, you can do stuff like
  boxplot(1:10, pars=list(staplelty=0, whisklty=0))

Uwe Ligges




__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html












---End Message---
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] I never made any assumption athat anyone had any obligation to do anything

2005-05-27 Thread BJ
I just asked a question. If I was too vague, then i am sorry. I dont 
expect anyone to help me, but I thought that it was ok to put the 
question out there in case someone wanted to help me. I didnt expect 
abject hostility for it. Human decency was the only thing I did expect. 
If my question was a pain,badly formatted, or too juvinile, then i have 
no problem being ignored.I asked a question that the archives did not 
satisfactorily answer. I appreciate the help of the poeple on this list 
as they are an invaluable resource, especially since the R documentation 
is sketchy at times. I am sorry for wasting everyones time. I just dont 
like being yelled at first thing in the morning for asking for help on a 
help list. See you all around  ~Erithid


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Any ideas on how to add a dotted line to a box plot to indicate a specific value?- Thank you all for your help

2005-05-26 Thread BJ

Lots of good ideas, and great advice! Thank you as always ~Erithid

vincent wrote:


lines(...) could perhaps be useful ?
hih

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html




__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Any ideas on how to add a dotted line to a box plot to indicate a specific value?

2005-05-25 Thread BJ
Basically, i want to create a boxplot from population data, with a solid 
line for the median, and then a dotted line for a specific persons 
value. Is there a way to artificially introduce another line or mark of 
some kind in a box plot? Thanks again for all of yoru help. Hopefully 
soon I wont have to keep bugging you all. ~Erithid :-p


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] formals or args question

2005-05-23 Thread BJ
Hello again, thank you again for all of your help. I am trying to get 
the arguments for a function, in a way that I can handle them. If I do 
args(fun), it doesnt really do what I want. If I use formals(fun) i get 
output like:


$a


$r


$s


Now, lthis is supposedly a list, but if i say formals(a)[[1]], I get 
nothing. I am just trying to get a vector with teh arguments  of a 
function so I can loop over them.


ex; a-function(p,r){p+r}

want: vector of c(p, r)

The documentation for args and formals is quite confusing. Thanks again! 
~Erithid


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] formals or args question

2005-05-23 Thread BJ

Ahh. Thanks a lot! works great. :-p

Ales Ziberna wrote:


names(formals(fun))

You need the names of the elements of the list formals produces, not 
their content!


Ales Ziberna

- Original Message - From: BJ [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Sent: Monday, May 23, 2005 4:45 PM
Subject: [R] formals or args question


Hello again, thank you again for all of your help. I am trying to get 
the

arguments for a function, in a way that I can handle them. If I do
args(fun), it doesnt really do what I want. If I use formals(fun) i get
output like:

$a


$r


$s


Now, lthis is supposedly a list, but if i say formals(a)[[1]], I get
nothing. I am just trying to get a vector with teh arguments  of a
function so I can loop over them.

ex; a-function(p,r){p+r}

want: vector of c(p, r)

The documentation for args and formals is quite confusing. Thanks again!
~Erithid

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html







__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] simple question, i hope

2005-05-17 Thread BJ
How do you output a list to a text file without the extra line numbers 
and stuff?

I have a list b, and tried
zz-textConnection(captest.txt,w)
sink(zz)
b
sink()
close(zz)
but that isnt what i want, because i get [[1]]
   [1] a
etc. Is there a simple way to do the R equivalent of this perl code?
open(OUT,out.txt);
print OUT @b;
close OUT
Thank you for your help. I tried pouring over teh documentation for 
this, but couldnt find what I was lookign for. ~Erithid

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] pls -- crossval vs plsr(..., CV=TRUE)

2005-05-13 Thread =?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=
Bjørn-Helge Mevik writes:

 There are two reasons:

Actually, there is a third reason as well. :-)  We've just discovered an
embarrasingly stupid bug in the R2 calculation in mvrCv; it calculates
R (the correlation) instead of R2 (squared correlation).  A patched
version will be released shortly.  Until then, c(R2(NIR.plsCV)$val^2)
should give you the correct values.

-- 
Bjørn-Helge Mevik

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] pls -- crossval vs plsr(..., CV=TRUE)

2005-05-12 Thread =?iso-8859-1?q?Bj=F8rn-Helge_Mevik?=
martin peters writes:

 $ library(pls)
 $ data(NIR)

 $ testing.plsNOCV - plsr(y ~ X, 6, data = NIR, method=kernelpls, 
 validation=none)
 $ NIR.plsCV - plsr(y ~ X, 6, data = NIR, CV=TRUE, method=kernelpls)
 $ testing.plsCV - crossval(testing.plsNOCV)
 $ R2(NIR.plsCV)
 (Intercept)  1 comps  2 comps  3 comps  4 comps  5 
 comps
   0.   0.9812   0.9825   0.9964   0.9997   
 0.
  6 comps
   0.
 $ R2(testing.plsCV)
 (Intercept)  1 comps  2 comps  3 comps  4 comps  5 
 comps
   0.   0.9678   0.9782   0.9941   0.9991   
 0.9996
  6 comps
   0.9997

[...]

 If the above result is correct can someone explain the difference to me.

There are two reasons:

1) The call plsr(y ~ X, 6, data = NIR, CV=TRUE, method=kernelpls) is
   incorrect.  The `CV' argument of the superseded `pls.pcr' package
   has been replaced by the `validation' argument, so the correct call
   would be
   NIR.plsCV - plsr(y ~ X, 6, data = NIR, validation=CV, method=kernelpls)
   (If you had done R2(testing.plsNOCV), you would have gotten exactly
   the same as with the R2(NIR.plsCV) above.)

2) plsr(... , validation = CV) and crossval(...) both by default use
   CV with 10-fold _randomly selected_ segments, which means that each
   time you run the cross-validation, you will get slightly different
   results.  (Try running R2(crossval(testing.plsNOCV)) a couple of times.)

   If you want the same segments in two separate calls, either add the
   argument segment.type = consecutive or interleaved, or specify
   the segments explicitly with the `segments' argument (see
   ?crossval or ?mvrCv for how).

   The segments actually used in a cross-validation is stored in the
   $validation$segments component of the object,
   i.e. testing.plsCV$validation$segments.

(By the way, `method = kernelpls' is not needed, as it is the
default fit method for plsr (and mvr).)

-- 
Bjørn-Helge Mevik

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] Gmail invitation

2005-03-25 Thread BJ
I got 48 if anyone wants em just let me know. :-) ~Erithid
Gorjanc Gregor wrote:
Hello R users!
I just found out that I have 49 invitations for Gmail (gmail.google.com).
I have been using it now for a while and is really nice. Don't forget 
1 GB for free.

I will invite those who respond to this mail by FIFO.
--
Lep pozdrav / With regards,
   Gregor Gorjanc

University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Departmentemail: gregor.gorjanc at bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html