Re: [R] update packages with R on Vista: error

2007-06-07 Thread R. Villegas
If R is installed within "Program Files", one of Vista's security
settings may interfere with the -update- process.

The setting may be disabled globally by choosing:
Windows (Start) menu, Control Panels, User Accounts and Family
Safety (green title), User Accounts (green title), and
Turn User Account Control on or off (very bottom).  You will be
prompted for permission to continue; click continue.  On the
screen you will see a checkbox titled "Use User Account Control
(UAC) to help protect your computer".  Uncheck this and click
the OK button to save the changes.  Windows Vista will now allow
programs, including R, to update files in "Program Files".

Rod.


2007/6/7, Stefan Grosse <[EMAIL PROTECTED]>:
> Actually the packages R wants to update are: VR, cluster, lattice, mgcv,
> nlme and rcompgen. I did how described in the R-Win-FAQ create a
> .Renviron File containing the path to the win-library that R already
> created (R_LIBS=C: ... ). I also tried to add R_LIBS= as Rgui parameter
> from within Tinn-R. Additionally I tried to leave a file named
> Renviron.site in the etc library. Nothing worked thus far.
>
> Interestingly installing packages does work fine even without specifying
> the R_LIBS path manually with any of the above mentioned methods.
>
> Even more puzzling is that even when I install eg. nlme manually via
> install.packages("nlme") it works but R still wants to update it. Even
> though e.g. library(nlme), ?nlme shows that the latest version is
> installed.
>
> I would guess there is some problem with the library path variable in
> the update program...
>
> Stefan
>
>
>  Original Message  
> Subject: Re:[R] update packages with R on Vista: error
> From: Prof Brian Ripley <[EMAIL PROTECTED]>
> To: Stefan Grosse <[EMAIL PROTECTED]>
> Date: 07.06.2007 13:01
> > See the rw-FAQ, which describes this in detail.
> >
> > Almost certainly you are trying to update the package 'cluster' which
> > is in the main library.  But as you used the GUI, we can't see that.
> >
> > On Thu, 7 Jun 2007, Stefan Grosse wrote:
> >
> >> Dear R-list,
> >>
> >> I have encountered the following error message trying to update R
> >> packages:
> >>
> >>> update.packages(ask='graphics')
> >> Warning in install.packages(update[instlib == l, "Package"], l,
> >> contriburl = contriburl,  :
> >> 'lib' is not writable
> >> Error in install.packages(update[instlib == l, "Package"], l, contriburl
> >> = contriburl,  :
> >>unable to install packages
> >>
> >> I  remember did not have the problem on the last update where R
> >> installed the files then in the Documents/R folder on my user account.
> >> Any ideas how to handle this? I made the directories completely writable
> >> so I do not know where the problem is now (especially since update
> >> worked before...)
> >>
> >> Stefan
> >>
> >> PS: Tinn-R 1.19.2.3 + R 2.5.0 on Vista Business
> >>
> >> __
> >> 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
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] computing logrank statistic/test

2007-05-07 Thread R. Villegas
2007/5/7, raymond chiruka <[EMAIL PROTECTED]>:
> hie how do you compute the logrank test using R
> what commands do you use my data looks something like just an example
>
> treatmentgrp strata censoringTime survivalTime censoring act.surv.time
>[1,] 2  2   42.89005 1847.3358  1  
> 42.89005
>[2,] 1  1   74.40379  440.3467  1  
> 74.40379
>[3,] 2  2   35.17913  344.1113  1  
> 35.17913
>[4,] 2  2   55.79590  741.2375  1  
> 55.79590
>[5,] 2  1  384.73976  189.7997  0 
> 189.79968
>[6,] 1  2  112.76215  375.8227  1 
> 112.76215
>[7,] 2  2   20.82441  658.0410  1  
> 20.82441
>[8,] 2  2   30.58497 1537.5776  1  
> 30.58497
>[9,] 2  1  128.48140  306.9908  1 
> 128.48140
>
>   l would like to compare the result with SAS
>
>
>
>
> -
> The fish are biting.
>
> [[alternative HTML version deleted]]
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

Please, check this page:
http://www.ats.ucla.edu/stat/R/examples/asa/asa_ch2_r.htm

Rod.

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] the Surv function

2007-05-03 Thread R. Villegas
2007/5/2, Jennifer Dillon <[EMAIL PROTECTED]>:
> Hi,
>
> I'm trying to do a simple survival analysis on some data, and I'm having the
> following problem (here's my code and the error message):
>
> out <- Surv(fup,event=status)
> Error in Surv(fup, event = status) : argument "time2" is missing, with no
> default
>
> >From reading the documentation, it seems that I should be able to simply
> write:  Surv(time1, event)  if my data is right-censored, which it is.
> Help!
>
> Thanks a million,
>
> Jen
>
>
>
> --
> Jennifer Dillon
> Doctoral Student
> Harvard Biostatistics
> Room 414B, Building 1
>
> [[alternative HTML version deleted]]
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

Read this page about Applied Survival Analysis:
http://www.ats.ucla.edu/stat/r/examples/asa/default.htm

Rod.

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] langage R

2007-04-17 Thread R. Villegas
2007/4/16, elyakhlifi mustapha <[EMAIL PROTECTED]>:
> bonjour,
>   je vous écris pour savoir si vous aviez trouver réponse pour l'écriture du 
> test de Newman & Keuls sous R car j'en ai aussi besoin
>   merci encore
>   cordialement.
>
>
> -
>
> [[alternative HTML version deleted]]
>
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>
>

Hello,
Maybe this post can help you,
http://tolstoy.newcastle.edu.au/R/help/04/09/4292.html

Rod.

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Mac vs. PC

2007-03-10 Thread R. Villegas
2007/3/10, Richard Morey <[EMAIL PROTECTED]>:
> My adviser has a Mac notebook that he bought 6 months ago, and I have a
> PC notebook I bought a month ago. Here are the respective specs, as far
> as I know them:
>
> His:
> Mac OSX
> 1 GB DDR2 RAM
> Intel Core Duo, 2 GHz (2MB cache per core)
> Unknown HD
>
> Mine
> Windows Vista Home Premium 32bit
> 2 GB DDR2 RAM
> Intel Core 2 Duo, 2 GHz (4MB cache)
> 5400 RPM Hard Drive
>
>
> We are both running R. As a test to see whose laptop was faster, we
> decided to invert large random matrices. In R language, it looks like this:
>
> N=2000
> A=rnorm(N^2)
> A=matrix(A,ncol=N)
> solve(A)
>
> This creates a matrix of 4,000,000 random normal deviates and inverts
> it. His computer takes about 7 seconds, while mine takes about 14. Why
> the difference? I have several working hypotheses, and it would be
> interesting to see what you guys think.
>
> 1. R on Mac was compiled with optimizations for the CPU, with R for
> Windows was not. I could test this by compiling R with the Intel
> compiler, or GCC with optimizations, and seeing if I get a significant
> speed boost.
>
> 2. His R is 64 bit, while mine is for 32 bit windows. (I'm not sure how
> much of a diference that makes, or whether OSX is 64 bit.)
>
> 3. Data is getting swapped to the hard drive, and my hard drive is
> slower than his. I chose a slower hard drive to get bigger capacity for
> the price.
>
> This is not intended to be an OMG MACOS = TEH R0X0R thread. I'm just
> trying to explain the discrepency.
>
> Thanks!
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

Hi,

For Windows you can check versions of Rblas.dll linked against the
ATLAS library:
http://cran.r-project.org/bin/windows/contrib/ATLAS/

Rod.

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] ks.test "greater" and "less"

2006-12-15 Thread R. Villegas
2006/12/15, Carmen Meier <[EMAIL PROTECTED]>:
> Hello r-group
> I have a question to the ks.test.
> I would expect different values for less and greater between data1 and
> data2.
> Does anybody could explain  my point of misunderstanding the function?
>
> data1<-c(8,12,43,70)
> data2<- c(70,43,12,8)
>
> ks.test(data1,"pnorm")
> ks.test(data1,"pnorm",alternative ="less")#expected < 0.001
> ks.test(data1,"pnorm",alternative ="greater") #expected =1
>
>
> ks.test(data2,"pnorm")
> ks.test(data2,"pnorm",alternative ="less")  #expected =1
> ks.test(data2,"pnorm",alternative ="greater") #expected < 0.001
>
>
> With regards Carmen
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

Possible  you are unable to use the Kolmogorov–Smirnov test given that
the sample size is small.

__
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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] series de tiempo diarias

2006-12-15 Thread R. Villegas
2006/12/15, Santiago Cilintano <[EMAIL PROTECTED]>:
> Existe algún paquete en donde puedo modelizar específicamente series diarias
> univariadas siguiendo la metodología de Box-Jenkins?
> Cómo modelizar mas de una estacionalidad en dichas series por ejemplo una
> estacionalidad semanal y anual?
>
> GRacias
> Santiago Cilintano
>
> [[alternative HTML version deleted]]
>
>
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>
>
>

Classical time series modelling tools are contained in the stats
package and include  arima()  for ARIMA modelling and Box-Jenkins-type
analysis.

Please 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
and provide commented, minimal, self-contained, reproducible code.


Re: [R] installing rgl package on linux suse 10.1

2006-11-01 Thread R. Villegas
2006/11/1, Steven Gorlé <[EMAIL PROTECTED]>:
> Dear R wizards,
>
> In windows I get really cool graphs with the rgl package.
> However on linux, it seems that I can't install one of my favourite packages.
> I get a error message on X11, but all X11 packages are installed on my linux
> desktop.
> Who can help me out here?
>
> Thanks!
>
> Steven Gorlé
>
>
> >install.packages()
>
> * Installing *source* package 'rgl' ...
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
> checking for X... no
> configure: error: X11 not found but required, configure aborted.
> ERROR: configuration failed for package 'rgl'
> ** Removing '/usr/lib/R/library/rgl'
>
> The downloaded packages are in
> /tmp/RtmpUAg2Xh/downloaded_packages
> Warning message:
> installation of package 'rgl' had non-zero exit status in: install.packages()
> >
>
> __
> 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
> and provide commented, minimal, self-contained, reproducible code.
>

Hello,
make sure the following packages are installed on suse (YAST):

xorg-x11-libs

Check this tutorial http://www.hellmund.dk/RSUSEGUI.html.

Ro.

__
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
and provide commented, minimal, self-contained, reproducible code.