On Thu, 28 Jul 2005, Peter Dalgaard wrote:
Walter R. Paczkowski [EMAIL PROTECTED] writes:
Good morning,
Is it possible to open an html file using IE but from within R? I
wrote a small function to generate tables in html but I'd like to
write another function to call IE and open the html
hi all
i have a another stats question.
i would like to solve the following question:
y(i)=a+b*x(i)+e(i)
i.e. estimate a and b (they should be fixed) but i dont want to specify
the standard density to the straight line.
this can be done using kernel regression. the fitted line is however
Hi Clark,
see:
? loess
http://finzi.psych.upenn.edu/R/library/stats/html/loess.html
? scatter.smooth
http://finzi.psych.upenn.edu/R/library/stats/html/scatter.smooth.html
Regards,
Vito
Clark Allan Allan at STATS.uct.ac.za wrote:
hi all
i have a another stats question.
i would like to
Hi all,
I have a little question about linear discriminant analysis in R.
I have a dataframe with datas groupped by 4 cluster.
I'd like to know if there is a command that give 4 predictive classification
groups functions (one for every cluster group).
Thanks of all
Leonardo
--
Leonardo Lami
Hari Iyer wrote:
Hello
Is there a way to use the identify function with matplot ?
Not directly, but you can write a wrapper for the particular case as in:
sines - outer(1:20, 1:4, function(x, y) sin(x / 20 * pi * y))
matplot(sines, pch = 1:4, type = o, col = rainbow(ncol(sines)))
Also have a look at this thread from last week
https://stat.ethz.ch/pipermail/r-help/2005-July/074550.html
Regards, Adai
On Thu, 2005-07-28 at 18:59 +0200, Petr Pikal wrote:
Hallo
On 28 Jul 2005 at 18:44, Andreas Cordes wrote:
Hi,
I have a problem that is hopefully easily solvable,
If you mean how to create a matrix like below, then you can code it as
arm - 1:10
study - rep( 1:4, c(3,3,2,2) )
Num - c(2, 9, ...)
df - cbind( arm, study, Num )
but this is really painful. If you have this information stored in
Excel, save it as tab delimited or comma separated
Hi all,
Just to clarify, I know that the predict() function would the normal
avenue for applying a model but the problem is that I need to
calculate recursive residuals, and the recresid() function needs an
object with class lm.
Best,
R.
On 28/07/05, Rick Ram [EMAIL PROTECTED] wrote:
Sorry guys,
I am trying to model data in which subjects are followed through time to
determine if they fall, or do not fall. Some of the subjects fall once,
some fall several times. Follow-up time varies from subject to subject.
I know how to model time to the first fall (e.g. Cox Proportional
Hazards,
How to select the number of PLS components for GPLS for data sets
with few samples?
Concrete problem:
My data set: 9 samples of class A and 37 of class B with 254
descriptors.
In the paper: Classification Using Generalized Partial Least
Squares, Beiying Ding, Robert Gentleman,
a simple question
how does one produce plots on two different graphics devices?
/
allan__
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
Alan,
I'm not sure what you mean...
perhaps
plot(y~x) # to the screen
pdf(myplot.pdf)
plot(y~x) # write the plot to the file
dev.off() # close the file
dev.off() # close the graphics window
s/
On 29/07/05, Clark Allan [EMAIL PROTECTED] wrote:
a simple question
how does one produce plots on
one could use the par command to plot several plots on 1 graphics
device.
i would like to do the following:
say plot(y~x) on one screen and then
plot(q~w) on another screen so that one can see both of them together
but not on the same graphics device.
Sean O'Riordain wrote:
Alan,
I'm not
Eventually one way:
With X11() you can open additional graphic devices.
x - rnorm(100)
y - x + runif(100)
plot(x)
X11()
plot(x,y)
Best,
Matthias
a simple question
how does one produce plots on two different graphics devices?
/
allan
__
Is this on windows? If so, how about the following:
windows()
plot(y~x)
windows()
plot(q~x)
For me, this creates two different plot _windows_ and you could tile
them to see each side-by-side. But I'm not sure how that would be
preferable to having the plots in the same window.
I played around with memory limits in R 2.1.0 under XP in order to be
able to work with large matrixes (3600x4100). Among several things I
tried was to alter console settings and saving them.
Since then, I can't restart Rgui. It says several times 'Console not
found' with pieces of the text
actually X11() also works under windows!
X11()
plot(y~x)
X11()
plot(q~x)
On 29/07/05, Chuck Cleland [EMAIL PROTECTED] wrote:
Is this on windows? If so, how about the following:
windows()
plot(y~x)
windows()
plot(q~x)
For me, this creates two different plot _windows_ and
Hi Allan,
in case of many plots in the same window you can try this:
options(graphics.record=TRUE)
plot(x)
plot(x,y)
with PgUp and PgDn you check both in the same window.
I hope this helps.
Roula
=
Spyridoula Tsonaka
Doctoral Student
Biostatistical Centre
Catholic University
Sounds like you have corrupted your Rconsole file.
Fire up rterm and try ?Rconsole and/or read the rw-FAQ to find the file
that it is use. It is not removed by uninstalling, and you do need to
remove it.
(The console settings have nothing whatsoever to do with memory settings.)
Your matrices
That's interesting,how can I see the help document of graphics.record option?
I use ?options ,but can not find anything about it.
Hi Allan,
in case of many plots in the same window you can try this:
options(graphics.record=TRUE)
plot(x)
plot(x,y)
with PgUp and PgDn you check both in the same
John Sorkin wrote:
I am trying to model data in which subjects are followed through time to
determine if they fall, or do not fall. Some of the subjects fall once,
some fall several times. Follow-up time varies from subject to subject.
I know how to model time to the first fall (e.g. Cox
John Sorkin wrote:
I am trying to model data in which subjects are followed through time to
determine if they fall, or do not fall. Some of the subjects fall once,
some fall several times. Follow-up time varies from subject to subject.
I know how to model time to the first fall (e.g. Cox
Hello!
If I use the errbar-function and have a logarithmic scale on the x-axis,
then the little horizontal bars at the end of the errbars (cap)
disappear. What can I do?
Thanks for helping!
Ute
__
R-help@stat.math.ethz.ch mailing list
Singer Willett (2003) also cover this ground.
Singer, JD Willett, JB (2003). Applied longitudinal data analysis: Modeling
change and event occurrence. New Yok: Oxford University Press.
-Original Message-
From: Frank E Harrell Jr [EMAIL PROTECTED]
Sent: Jul 29, 2005 9:25 AM
To: John
On 7/29/2005 8:01 AM, Manuel Schneider wrote:
I played around with memory limits in R 2.1.0 under XP in order to be
able to work with large matrixes (3600x4100). Among several things I
tried was to alter console settings and saving them.
Since then, I can't restart Rgui. It says several
I'd suggest starting with the documentation. See
?Devices
and then look at some of the other functions referenced in the See
Also section of ?Devices.
Basically, you produce plots on two different graphics devices by
this sequence:
1) open a graphics device
2) produce a plot
3)
This is for Windows only, and documented in
?windows
README.rw2011 (or whatever)
It's more usual to switch recording on when you need it, either in the
windows() call or from a menu.
?options only tells you about the standard options, not those used on
specific platforms or by packages (and
John Sorkin jsorkin at grecc.umaryland.edu writes:
I am trying to model data in which subjects are followed through time to
determine if they fall, or do not fall. Some of the subjects fall once,
some fall several times. Follow-up time varies from subject to subject.
Chapter 4.3 in
I'm trying to update my Matrix package given the update last night. But
the following error is generated. I've tried restarting R and deleting
my old Matrix package. Can anyone suggest how this might be resolved?
install.packages('Matrix')
trying URL
Doran, Harold wrote:
I'm trying to update my Matrix package given the update last night. But
the following error is generated. I've tried restarting R and deleting
my old Matrix package. Can anyone suggest how this might be resolved?
Do you have write permission on the library into which you
Possible answers:
1) You do not have permission to remove the package from its previous
location.
2) Windows mistakenly thinks that some file in the package is still open.
Try deleting the directory from Windows Explorer. If 2) you may have to
log out or reboot Windows before you can do so.
After restarting Windows Matrix was properly updated. Not quite sure
where the error was, but it is certainly local.
-Original Message-
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Friday, July 29, 2005 11:58 AM
To: Doran, Harold
Cc: r-help@stat.math.ethz.ch; [EMAIL
Does the following help:
set.seed(1)
Lvls - factor(letters[1:4])
A - array(sample(4, 6, replace=TRUE), dim=c(2,3))
A[] - levels(Lvls)[A]
A
[,1] [,2] [,3]
[1,] b c a
[2,] b d d
If not, PLEASE do read the posting guide!
I've gotten that error message when trying to update a package I had
attached. oops. (like do-it-yourself lobotomy.) Then I had to
install.packages, because much of it got deleted and it wouldn't work
any more.
spencer graves
Prof Brian Ripley wrote:
Possible
On Fri, 29 Jul 2005, John Sorkin wrote:
I am trying to model data in which subjects are followed through time to
determine if they fall, or do not fall. Some of the subjects fall once,
some fall several times. Follow-up time varies from subject to subject.
I know how to model time to the
On Fri, 29 Jul 2005, Dieter Menne wrote:
John Sorkin jsorkin at grecc.umaryland.edu writes:
I am trying to model data in which subjects are followed through time to
determine if they fall, or do not fall. Some of the subjects fall once,
some fall several times. Follow-up time varies from
You should have got a different error message, namely
package some_pkg is in use and will not be installed
and that is what I got when I tried it.
On Fri, 29 Jul 2005, Spencer Graves wrote:
I've gotten that error message when trying to update a package I
had attached.
Hi There,
I got some results from using nnet on a two-class problem, and I'd like to
hear your comments to understand well about the algorithm. In the training set,
the ratio of class 1 to class 2 is about 23:77. I did a 5-fold cross
validation. The networks were trained twice, one with
I put the options() call into my Rprofile.site code (there are other ways to
do this, too) so that it's automatic at startup. ?Startup documents other
ways you can do this. I've never run into problems having recording always
on, but maybe there are some I'm unaware of.
-- Bert Gunter
Genentech
Hi, All;
I have a question. In R, what is the best way to make R idle for a while and
try something again later? For example, suppose there is an R job which
accesses a file that may be shared with other active jobs. So when the file
is being accessed by other job, your job will not be able to
On 7/29/2005 3:13 PM, Tae-Hoon Chung wrote:
Hi, All;
I have a question. In R, what is the best way to make R idle for a while and
try something again later? For example, suppose there is an R job which
accesses a file that may be shared with other active jobs. So when the file
is being
Which operating system are you using ?
See help(Sys.sleep), which might be what you want but there may be other
ways in determining if a file is being accessed by another program.
Regards, Adai
On Fri, 2005-07-29 at 12:13 -0700, Tae-Hoon Chung wrote:
Hi, All;
I have a question. In R, what
Dear Tae-Hoon:
1. RSiteSearch('wait') will tell you that Sys.sleep() is what you want.
Although this list is terrific, R's built-in help/search tools should always
be tried first (they're faster when you hit the right search term).
2. The other part of the puzzle is ?try
-- Bert Gunter
I done something very similar -- have R watch a file, and whenever
new data is added to the file, read the new data from the file. In my
case, new data was arriving once per minute, so I needed to have R
wait about a minute before looking for new data.
On my unix-based system, I found that if
Don MacQueen wrote:
I done something very similar -- have R watch a file, and whenever
new data is added to the file, read the new data from the file. In my
case, new data was arriving once per minute, so I needed to have R
wait about a minute before looking for new data.
On my
Numbers, not in characters strings do not come out bold:
plot(1:5, type = n)
text(x=3,y=3, quote(bold(paste(a==a ~~ 0.5 == 0.5
On 7/25/05, Wladimir Eremeev [EMAIL PROTECTED] wrote:
Dear Thomas,
TL In case 1 you have the string 0.5, in case 2 you have the number 0.5.
TLtext(x=2,y=2,
This depends on what else is going on. My guess is that you are running
the Aqua GUI, and it is servicing the GUI which is taking the time, not R
itself.
On all of Linux, Solaris and Windows (RGui or Rterm) Sys.sleep() does use
very close to zero resources at the beginning of a session, but
47 matches
Mail list logo