[R] install own packages

2005-04-11 Thread Christian Hoffmann
Hi, Soory, if I missed relevant help pages. I have developed several packages myself and want to give them to a collegue in *.tar.gz form (Unix, Solaris). What is the proper function to install them? install.packages() with a path pointing to the local temp instead of to CRAN? Thanks for help.

Re: [R] where is internal function of sample()?

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Weijie Cai wrote: I am trying to write a c++ shared library for R. I need a function which has the same functionality as sample() in R, i.e., does permutation, sample with/without replacement. Does R have internal sample routine so that I can call it directly? I did not fin

[R] R Package: mmlcr and/or flexmix

2005-04-11 Thread Geller, Scott (IHG)
Greetings I'm a relatively new R user and I'm trying to build a latent class model. I've used the 'R Site Search' and it appears there's not much dialogue on these packages On mmlcr, I've gotten it working, but not sure if I'm using it correctly. On flexmix, I can only seem to get resu

Re: [R] RE:Building R packages under Windows.

2005-04-11 Thread Renaud Lancelot
Gabor Grothendieck a écrit : On Apr 11, 2005 8:55 PM, Duncan Golicher <[EMAIL PROTECTED]> wrote: Many, many thanks to Renaud Lancelot who sent me exactly the sort of guide I was looking for. It is in French, but exceptionally clear and easy to follow and I got a rough and ready test package built i

Re: [R] adding R site search to Rgui

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 10:39 PM, Liaw, Andy <[EMAIL PROTECTED]> wrote: > From: Gabor Grothendieck > > > On Apr 11, 2005 11:28 AM, Martin Maechler > wrote: > > > > > > If you use R 2.1.0 beta (which you should consider seriously as > > > a good netizen ;-), this is as simple as > > > > > > > RSiteSear

Re: [R] where is internal function of sample()?

2005-04-11 Thread Marc Schwartz
On Mon, 2005-04-11 at 23:04 -0400, Weijie Cai wrote: > Hi there, > > I am trying to write a c++ shared library for R. I need a function which has > the same functionality as sample() in R, i.e., does permutation, sample > with/without replacement. Does R have internal sample routine so that I ca

[R] where is internal function of sample()?

2005-04-11 Thread Weijie Cai
Hi there, I am trying to write a c++ shared library for R. I need a function which has the same functionality as sample() in R, i.e., does permutation, sample with/without replacement. Does R have internal sample routine so that I can call it directly? I did not find it in R.h, Rinternal.h. Tha

[R] adding R site search to Rgui

2005-04-11 Thread Liaw, Andy
From: Gabor Grothendieck > On Apr 11, 2005 11:28 AM, Martin Maechler wrote: > > > > If you use R 2.1.0 beta (which you should consider seriously as > > a good netizen ;-), this is as simple as > > > > > RSiteSearch("String manipulation---mixed case") > > A search query has been submitted to

[R] calling svydesign function that uses model.frame

2005-04-11 Thread Richard Valliant
I need help on calling the svydesign function in the survey package (although this error appears not to be specific to svydesign). I am passing parameters incorrectly but am not sure how to correct the problem. ## Call the main function PS.sim (one of mine). The dots are parameters I omitted to s

Re: [R] RE:Building R packages under Windows.

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 8:55 PM, Duncan Golicher <[EMAIL PROTECTED]> wrote: > Many, many thanks to Renaud Lancelot who sent me exactly the sort of > guide I was looking for. It is in French, but exceptionally clear and > easy to follow and I got a rough and ready test package built in no > time. It really

[R] RE:Building R packages under Windows.

2005-04-11 Thread Duncan Golicher
Many, many thanks to Renaud Lancelot who sent me exactly the sort of guide I was looking for. It is in French, but exceptionally clear and easy to follow and I got a rough and ready test package built in no time. It really is not that hard if you don't bother with TeX/LaTeX. Most of my previous

Re: [R] Regression and time series

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 8:18 PM, Fernando Saldanha <[EMAIL PROTECTED]> wrote: > Can someone shed some light on this obscure portion of the help for lm? > >"Considerable care is needed when using 'lm' with time series. > > Unless 'na.action = NULL', the time series attributes are stripped > fr

[R] Regression and time series

2005-04-11 Thread Fernando Saldanha
Can someone shed some light on this obscure portion of the help for lm? "Considerable care is needed when using 'lm' with time series. Unless 'na.action = NULL', the time series attributes are stripped from the variables before the regression is done. (This is necessary as omi

[R] dependent competing risks

2005-04-11 Thread Hein Goemans
I am a beginner in R. I want to estimate a dependent competing risks model as proposed by Han and Hausman (1990). Especially because I want to estimate a model with TVC, I write to inquire whether any one else has written up such a model in R and whether I could take a peek at snippets of code.

[R] correlation range estimates with nlme::gls

2005-04-11 Thread Ben Bolker
I'm trying to do a simple (?) analysis of a 1D spatial data set, allowing for spatial autocorrelation. (Actually, I'm comparing expected vs. observed for a spatial model of a 1D spatial data set.) I'm using models like gls(obs~exp,correlation=corExp(form=~pos),data=data) or gls(obs~exp,corr

RE: [R] ANNOUNCE: S-PLUS 7.0

2005-04-11 Thread Vadim Ogranovich
David, From the white paper, the BIG DATA THING looks quite impressive. IMHO, it addresses the biggest limitation the S family has had so far. I could, of course, think of few features that I wish to see there, but the existing functionality looks fairly complete. Congratulations! An R folk Vadim

Re: [R] How to calculate the AUC in R

2005-04-11 Thread "Dubas, João Paulo"
Quoting Frank E Harrell Jr: Dubas, João Paulo wrote: Quoting Frank E Harrell Jr: Do you know any book where I can get more information about the subject? Thanks for the help João Paulo Dubas. No, other than an algebra or calculus book where numerical integration is discussion. Thanks to all liste

[R] nested random effects

2005-04-11 Thread Dede Greenstein
Hello For an unbalanced longitudinal data set with subjects nested within family as the random effect (random= ~1 | FAMILY/ID)-- I am unclear as to why the subject within family random coefficient is not zero when there is only one person in a family with only one data point. Thanks Dede Green

[R] ANNOUNCE: S-PLUS 7.0

2005-04-11 Thread David Smith
Insightful is proud to announce a major update to S-PLUS available today: S-PLUS 7. S-PLUS 7 was designed to enable statisticians to create targeted statistical applications with large data sets that can be deployed to business users, researchers, analysts and other end users who do not have specia

Re: [R] How to calculate the AUC in R

2005-04-11 Thread Adaikalavan Ramasamy
Also see the function AUC in the ROC package. On Mon, 2005-04-11 at 13:34 -0400, Frank E Harrell Jr wrote: > Dubas, JoÃo Paulo wrote: > > Hello R-listers, > > > > I'm working in an experiment that try to determine the degree of > > infection of different clones of a fungus and, one of the measu

Re: [R] How to calculate the AUC in R

2005-04-11 Thread Frank E Harrell Jr
Dubas, João Paulo wrote: Hello R-listers, I'm working in an experiment that try to determine the degree of infection of different clones of a fungus and, one of the measures we use to determine these degree is the counting of antibodies in the plasma at different dilutions, in this experiment th

[R] How to calculate the AUC in R

2005-04-11 Thread "Dubas, João Paulo"
Hello R-listers, I'm working in an experiment that try to determine the degree of infection of different clones of a fungus and, one of the measures we use to determine these degree is the counting of antibodies in the plasma at different dilutions, in this experiment the maximum number of dilu

Re: [R] How to change letters after space into capital letters

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 11:28 AM, Martin Maechler <[EMAIL PROTECTED]> wrote: > > If you use R 2.1.0 beta (which you should consider seriously as > a good netizen ;-), this is as simple as > > > RSiteSearch("String manipulation---mixed case") > A search query has been submitted to http://search.r-proj

Re: [R] Building R packages under Windows.

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 10:58 AM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > Gabor Grothendieck wrote: > > > Other resources are: > > - http://www.murdoch-sutherland.com/Rtools/ > > My plan is that this is only going to include updates of the information > in the R Admin manual, e.g. when a new version

Re: [R] How to change letters after space into capital letters

2005-04-11 Thread Martin Maechler
> "Gabor" == Gabor Grothendieck <[EMAIL PROTECTED]> > on Mon, 11 Apr 2005 07:31:00 -0400 writes: Gabor> On Apr 11, 2005 6:22 AM, Wolfram Fischer <[EMAIL PROTECTED]> wrote: >> What is the easiest way to change within vector of strings >> each letter after a space into a capi

[R] (no subject)

2005-04-11 Thread Cerviño Beresi Ulises
Hello R-people, I have searched the mailing list messages and the R site (through the web search and google) I didnt find anything related to Particle Swarm Optimization (PSO) for R. Is there a package that implements such algorithm? Thanks in advance, Ulises ___

[R] Re: [R-SIG-Mac] BUG in RODBC with OS X?

2005-04-11 Thread Simon Urbanek
Drew, On Apr 8, 2005, at 11:53 AM, Drew Balazs wrote: This is my second posting on this topic, the first recieved no replies. Has anyone successfully used RODBC on the OS X platform? Yes - it works pretty much out of the box. I tested it with the Actual drivers and they work pretty well (althoug

Re: [R] Error on X11 or on R?

2005-04-11 Thread Elio Mineo
Ok. Thanks Peter. Peter Dalgaard wrote: Elio Mineo <[EMAIL PROTECTED]> writes: Dear list, I am using R version 2.0.0 under Linux Mandrake 10.0. I have installed R by using the rpm file on CRAN. By executing the following code, I have this output (the text file formaggio.txt is attached): > dati

RE: [R] embedding fonts in eps files

2005-04-11 Thread Rudi Alberts
Hi, I'm again struggling with embedding of fonts in eps files using R. Is this really possible? I don't agree with prof. Ripley saying that all necessary information is in the help file. The aim is to include the complete definitions of the fonts (eventually only the used characters), not only the

Re: [R] Error on X11 or on R?

2005-04-11 Thread Peter Dalgaard
Elio Mineo <[EMAIL PROTECTED]> writes: > Dear list, > I am using R version 2.0.0 under Linux Mandrake 10.0. I have installed > R by using the rpm file on CRAN. > By executing the following code, I have this output (the text file > formaggio.txt is attached): > > > dati <- read.table("formaggio.t

Re: [R] how to use the "hmm" packgae?

2005-04-11 Thread Rolf Turner
``Eric'' ([EMAIL PROTECTED]) wrote: > Hi all, > Can someone help me how to use the hmm package? > I see the description,but i didnot know how to use it. > I got the y.sim value for the sim.hmm function, > then I want the example "try <- hmm(y.sim,K=2,verb=T" to work , > How can I do it succes

Re: [R] Building R packages under Windows.

2005-04-11 Thread Duncan Murdoch
Gabor Grothendieck wrote: Other resources are: - http://www.murdoch-sutherland.com/Rtools/ My plan is that this is only going to include updates of the information in the R Admin manual, e.g. when a new version of one of the tools is available, this page will give advice on whether to use it or n

Re: [R] Two y-axis in lattice

2005-04-11 Thread Deepayan Sarkar
On Monday 11 April 2005 08:58, Sharon Kuhlmann wrote: > Hi, > > I am trying to plot two time series in each panel of an xyplot in > lattice, but I need a different y-axis for each time series. Is this > possible? Depends. How do you want the axes to be displayed? A small reproducible example tha

Re: [R] static analysis tools for R code?

2005-04-11 Thread Prof Brian Ripley
Look at Luke Tierney's codetools package. https://stat.ethz.ch/pipermail/r-devel/2003-July/027103.html It is useful, and has been run over R itself several times. On Mon, 11 Apr 2005, Vivek Rao wrote: An R script will terminate when one tries to use an undefined variable, with a message such as Err

Re: [R] static analysis tools for R code?

2005-04-11 Thread Luke Tierney
There are some preliminary tools available in the codetools package at http://www.stat.uiowa.edu/~luke/R/codetools/ Hopefully these will be cleaned up and released via CRAN or incorporated into R this summer. luke On Mon, 11 Apr 2005, Dimitris Rizopoulos wrote: If I understand well what you

Re: [R] Trying to undo an assignment

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Uzuner, Tolga wrote: Hi, I defined corr to be a function, not realising that this was also the name for correlation in package=boot. How do I explicitly call the corr function within package boot (so, scope up over the current frame, I guess is another way of saying it) without

Re: [R] static analysis tools for R code?

2005-04-11 Thread Dimitris Rizopoulos
If I understand well what you need then (I think) the answer is No; this is a feature of the language called "Lazy Evaluation". For more info look at e.g., the "R Language Definition" document, section 4.3.3. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of

[R] how to use the "hmm" packgae?

2005-04-11 Thread Eric(博厚)
Hi all, Can someone help me how to use the hmm package? I see the description,but i didnot know how to use it. I got the y.sim value for the sim.hmm function, then I want the example "try <- hmm(y.sim,K=2,verb=T" to work , How can I do it successly? Thank's for your help.

[R] static analysis tools for R code?

2005-04-11 Thread Vivek Rao
An R script will terminate when one tries to use an undefined variable, with a message such as Error in print(x) : Object "x" not found This run-time error might occur after the script has already been running for some time. In some cases it would be nice to get such warnings before the script i

[R] Two y-axis in lattice

2005-04-11 Thread Sharon Kuhlmann
Hi, I am trying to plot two time series in each panel of an xyplot in lattice, but I need a different y-axis for each time series. Is this possible? How? Thanks for any suggestions. Sincerely, Sharon Kühlmann Sharon Kühlmann Berenzon Biostatistics/

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Gavin Simpson
Roger Bivand wrote: On Mon, 11 Apr 2005, Gavin Simpson wrote: Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting output within the handouts so they can see what to expect the output to look lik

Re: [R] dealing with multicollinearity

2005-04-11 Thread ronggui
why not use vif command (from car library) to caculate the VIF to help you assess is a collinearity is infulential? I have never seen any book dealling with this topics by perturbation analysis. the VIF,tolerance,principal component analysis are the tools dealing with collinearity.you can get

[R] Error on X11 or on R?

2005-04-11 Thread Elio Mineo
Dear list, I am using R version 2.0.0 under Linux Mandrake 10.0. I have installed R by using the rpm file on CRAN. By executing the following code, I have this output (the text file formaggio.txt is attached): > dati <- read.table("formaggio.txt", header=TRUE) > plot(dati) Error in text.default(

RE: [R] How to suppress the printing of warnings (Windows)?

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Jacho-Chavez,DT (pgr) wrote: I'm running R v2.0.0 on Windows 2000. The command options(warn=-1) did the trick. However, is there a way I may also stop these warnings from printing on my screen while using R interactively. I am working with the LOCFIT library. Then sink() is

[R] TSeries GARCH Estimates accuracy

2005-04-11 Thread Sanjay Kumar Singh
Hi, I am trying to fit a GARCH(1,1) model to a financial timeseries using the 'garch' function in the tseries package. However the parameter estimates obtained sometimes match with those obtained using SAS or S-Plus (Finmetrics) and sometimes show a completely different result. I understand tha

RE: [R] How to suppress the printing of warnings (Windows)?

2005-04-11 Thread Jacho-Chavez,DT (pgr)
I'm running R v2.0.0 on Windows 2000. The command options(warn=-1) did the trick. However, is there a way I may also stop these warnings from printing on my screen while using R interactively. I am working with the LOCFIT library. I'm also planning to run my simulations in my department's Unix m

Re: [R] Trying to undo an assignment

2005-04-11 Thread Sundar Dorai-Raj
Uzuner, Tolga wrote on 4/11/2005 7:33 AM: Hi, I defined corr to be a function, not realising that this was also the name for correlation in package=boot. How do I explicitly call the corr function within package boot (so, scope up over the current frame, I guess is another way of saying it) withou

Re: [R] How to suppress the printing of warnings (Windows)?

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Jacho-Chavez,DT (pgr) wrote: Dear all, I'm a newbie in R. I am running simulations using a fixed bandwidth in nonparametric regressions, sending all the output to a file myoutput.txt using sink("myoutput.txt"), & R is printing all warnings by the end of the simulation on th

Re: [R] dealing with multicollinearity

2005-04-11 Thread John Sorkin
Manuel, The problem you describe does not sound like it is due to multicolinearity. I state this because you variance inflation factor is modest (1.1) and, more importantly, the correlation between your independent variables (x1 and x2) is modest, -0.25. I suspect the problem is due to one, or more

RE: [R] How to suppress the printing of warnings (Windows)?

2005-04-11 Thread abunn
> I'm a newbie in R. I am running simulations using a fixed > bandwidth in nonparametric regressions, sending all the output to > a file myoutput.txt using sink("myoutput.txt"), & R is printing > all warnings by the end of the simulation on the file. I know the > source of the problem & can ta

[R] Trying to undo an assignment

2005-04-11 Thread Uzuner, Tolga
Hi, I defined corr to be a function, not realising that this was also the name for correlation in package=boot. How do I explicitly call the corr function within package boot (so, scope up over the current frame, I guess is another way of saying it) without removing my new corr function ? Thank

Re: [R] How to suppress the printing of warnings (Windows)?

2005-04-11 Thread Dimitris Rizopoulos
try, options(warn=-1) I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Sean Davis
On Apr 11, 2005, at 8:12 AM, Gavin Simpson wrote: Gabor Grothendieck wrote: On Apr 11, 2005 7:22 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote: Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting ou

Re: [R] How to change letters after space into capital letters

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Barry Rowlingson wrote: Wolfram Fischer wrote: What is the easiest way to change within vector of strings each letter after a space into a capital letter? [Example omitted, that did somthing different! c( "this is an element of the vector of strings", "second element" ) becom

Re: [R] Building R packages under Windows.

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 2:58 AM, Duncan Golicher <[EMAIL PROTECTED]> wrote: > Hello, > > My question is the following. Has anyone put together an "idiots" > checklist of the steps needed to build a (small personal) package under > Windows, or documented their own experiences of building packages under > W

[R] How to suppress the printing of warnings (Windows)?

2005-04-11 Thread Jacho-Chavez,DT (pgr)
Dear all, I'm a newbie in R. I am running simulations using a fixed bandwidth in nonparametric regressions, sending all the output to a file myoutput.txt using sink("myoutput.txt"), & R is printing all warnings by the end of the simulation on the file. I know the source of the problem & can tak

Re: [R] ??

2005-04-11 Thread TEMPL Matthias
Hello Adrián, Look e.g. at http://tolstoy.newcastle.edu.au/R/help/04/06/0869.html and use e.g. http://finzi.psych.upenn.edu/search.html for searching help files, manuals and mailing list archives. Best, Matthias > > R people, > I'd like to know how can I make inequations with are What is are?

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Gavin Simpson
Gabor Grothendieck wrote: On Apr 11, 2005 7:22 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote: Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting output within the handouts so they can see what to exp

Re: [R] About importing CSV file

2005-04-11 Thread Peter Dalgaard
Adaikalavan Ramasamy <[EMAIL PROTECTED]> writes: > So you expect R to do the following : > > convert 15,15,24to 15.00, 15.24 AND > convert 16,5,16,88 to 16.50, 16.88 > > The second conversion should be fairly easy BUT how do you expect R to > know that the first conversion should pro

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Roger Bivand
On Mon, 11 Apr 2005, Gavin Simpson wrote: > Dear List, > > I'm using Sweave to produce a series of class handouts for a course I am > running. The students in previous years have commented about wanting > output within the handouts so they can see what to expect the output to > look like. So S

[R] ??

2005-04-11 Thread Sec.FACEA
R people, I'd like to know how can I make inequations with are, specially work with lineal programming. Thanks for your unvaluable help Adrián __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

Re: [R] Sweave and abbreviating output from R

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 7:22 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote: > Dear List, > > I'm using Sweave to produce a series of class handouts for a course I am > running. The students in previous years have commented about wanting > output within the handouts so they can see what to expect the output

Re: [R] How to change letters after space into capital letters

2005-04-11 Thread Gabor Grothendieck
On Apr 11, 2005 6:22 AM, Wolfram Fischer <[EMAIL PROTECTED]> wrote: > What is the easiest way to change within vector of strings > each letter after a space into a capital letter? > > E.g.: > c( "this is an element of the vector of strings", "second element" ) > becomes: > c( "This Is An Element

[R] Sweave and abbreviating output from R

2005-04-11 Thread Gavin Simpson
Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting output within the handouts so they can see what to expect the output to look like. So Sweave is a godsend for producing this type of handout -

Re: [R] How to change letters after space into capital letters

2005-04-11 Thread Barry Rowlingson
Wolfram Fischer wrote: What is the easiest way to change within vector of strings each letter after a space into a capital letter? This perl code seems to work: #!/usr/bin/perl $s1="this is a lower-cased string"; $s1=~s/ ([a-z])/ \u\1/g; print $s1."\n"; producing: this Is A Lower-cased String but

Re: [R] R: function code

2005-04-11 Thread Dimitris Rizopoulos
check these: library(nnet) methods(nnet) nnet.default nnet.formula print.nnet nnet:::print.nnet I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/

Re: [R] How to change letters after space into capital letters

2005-04-11 Thread Renaud Lancelot
Wolfram Fischer a écrit : What is the easiest way to change within vector of strings each letter after a space into a capital letter? E.g.: c( "this is an element of the vector of strings", "second element" ) becomes: c( "This Is An Element Of The Vector Of Strings", "Second Element" ) My reaso

Re: [R] R: function code

2005-04-11 Thread Federico Calboli
On Mon, 2005-04-11 at 12:52 +0200, Clark Allan wrote: > HI > > sorry to be a nuisance to all!!! > > how can i see the code of a particular function? > > e.g. nnet just as an example for some function just type the function name and you get the code: > ls function (name, pos = -1, envir = as.e

Re: [R] R: function code

2005-04-11 Thread Adaikalavan Ramasamy
# In your specific case : > library(nnet) > methods(nnet) [1] nnet.default nnet.formula > nnet.default function (x, y, weights, size, Wts, mask = rep(TRUE, length(wts)), linout = FALSE, entropy = FALSE, softmax = FALSE, censored = FALSE, skip = FALSE, rang = 0.7, decay = 0, maxit = 10

Re: [R] R: function code

2005-04-11 Thread Uwe Ligges
Clark Allan wrote: HI sorry to be a nuisance to all!!! how can i see the code of a particular function? e.g. nnet just as an example Most easily by downloading the package sources and looking in the R directory. Or in the console: library(nnet) nnet methods(nnet) nnet.formula nnet.default n

[R] DSE package: "estVARXls" Method

2005-04-11 Thread Reckers, Thomas
I am trying to use the "estVARXls" in the DSE1 Package method to run a VAR. However i keep on receiving the following message "Error in periodsOutput(data) : no applicable method for "periodsOutput" " . Can anyone help with me this? I am sorry if this question sounds really stupid but i havent got

Re: [R] About importing CSV file

2005-04-11 Thread Adaikalavan Ramasamy
So you expect R to do the following : convert 15,15,24to 15.00, 15.24 AND convert 16,5,16,88 to 16.50, 16.88 The second conversion should be fairly easy BUT how do you expect R to know that the first conversion should produce 15.00, 15.24 and not 15.15, 24.00 ? Without knowing which

[R] R: function code

2005-04-11 Thread Clark Allan
HI sorry to be a nuisance to all!!! how can i see the code of a particular function? e.g. nnet just as an example__ 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-projec

[R] About importing CSV file

2005-04-11 Thread Silvia Bachetti
I have a problem for reading a data from excel (.csv) to R, because the numeric variables ( float) are separeted by comma (,) and not by point (.). And all the variables are separated by comma (,). The string variables are between (""). So importing to R the numeric variable (float) are reading

[R] dealing with multicollinearity

2005-04-11 Thread Manuel Gutierrez
I have a linear model y~x1+x2 of some data where the coefficient for x1 is higher than I would have expected from theory (0.7 vs 0.88) I wondered whether this would be an artifact due to x1 and x2 being correlated despite that the variance inflation factor is not too high (1.065): I used perturbat

[R] How to change letters after space into capital letters

2005-04-11 Thread Wolfram Fischer
What is the easiest way to change within vector of strings each letter after a space into a capital letter? E.g.: c( "this is an element of the vector of strings", "second element" ) becomes: c( "This Is An Element Of The Vector Of Strings", "Second Element" ) My reason to try to do this is t

Re: [R] Princomp$Scores

2005-04-11 Thread miguel manese
The scores can be "manually" computed as center(your.matrix,scale=F) %*% eigen(cov(your.matrix))$vector # or cor() i.e. a linear combination of your mean-corrected data. negative coefficients does not imply anything, because computation of the signs of eigenvectors is arbitrary. Absolute va

RE: [R] How to search an element in matrix ?

2005-04-11 Thread Adaikalavan Ramasamy
Actually, you will need to use arr.ind=TRUE which is not the default option. You will get the results in form [i, j] indicating the i^{th} row and j^{th} column of the element that passes the criteria. m <- matrix( rnorm(6), nc=3 ) m [,1] [,2] [,3] [1,] 0.5066194 0.786876 -

Re: [R] Building R packages under Windows.

2005-04-11 Thread Uwe Ligges
Duncan Murdoch wrote: Duncan Golicher wrote: Hello, My question is the following. Has anyone put together an "idiots" checklist of the steps needed to build a (small personal) package under Windows, or documented their own experiences of building packages under Windows? I ask this as last week

Re: [R] Building R packages under Windows.

2005-04-11 Thread Duncan Murdoch
Duncan Golicher wrote: Hello, My question is the following. Has anyone put together an "idiots" checklist of the steps needed to build a (small personal) package under Windows, or documented their own experiences of building packages under Windows? I ask this as last week there were some very i

Re: [R] Building R packages under Windows.

2005-04-11 Thread Uwe Ligges
Duncan Golicher wrote: Hello, My question is the following. Has anyone put together an "idiots" checklist of the steps needed to build a (small personal) package under Windows, or documented their own experiences of building packages under Windows? I ask this as last week there were some very i

Re: [R] R_LIBS difficulty ?

2005-04-11 Thread Peter Dalgaard
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > See the description in ?Startup, which says things like ${foo-bar} are > allowed but not $HOME, and not ${HOME}/bah or even ${HOME}. Argh, Brian is right (again!) and I was extrapolating beyond what actually works. -- O__ Peter Dalgaard

Re: [R] multi-class modeling

2005-04-11 Thread Prof Brian Ripley
All of this is addressed in the reference for multinom(): it is support software for a book. (You are likely to get a more sympathetic response if you use a real name and a signature giving your true affiliation.) On Sun, 10 Apr 2005, 'array chip' wrote: Just wonder if someone could comment on

Re: [R] R_LIBS difficulty ?

2005-04-11 Thread Prof Brian Ripley
On Sun, 10 Apr 2005, François Pinard wrote: Hi, R people. I'm shy reporting this, as a bug in this area sounds very unlikely. Did I make my tests wrongly? I'm still flaky at all this. Let me dare nevertheless, who knows, just in case... Please don't kill me! :-) Not so long ago, I wrote to this

[R] gcmrec -- new package for recurrent events

2005-04-11 Thread Gonzalez Ruiz, Juan Ramon
> Dear R-Users, > > We would like to announce a new package called "gcmrec". This package fits > the parameters for the general semiparametric model for recurrent events > proposed by Peña and Hollander (2004). This class of models incorporates an > effective age function which encodes the ch

Re: [R] Building R packages under Windows.

2005-04-11 Thread Dimitris Rizopoulos
I presume you got this error message: Error: environment variable Tmpdir not set (or set to unusable value) and not default available. at ...\perl/R/Utils.pm line 67 The simplest thing to do is to create a folder named "Temp" in your C drive. I hope it helps. Best, Dimitris Dimitris Riz

Re: [R] extracting correlations from nlme

2005-04-11 Thread Peter Dalgaard
Simon Blomberg <[EMAIL PROTECTED]> writes: > >I would like to know how (if) I can extract some of the information from > >the summary of my nlme. > > This is R. There is no if. Only how. I think Simon "Yoda" Blomberg just entered the fortune package -- O__ Peter Dalgaard

Re: [R] writing to an Excel file

2005-04-11 Thread Prof Brian Ripley
On Mon, 11 Apr 2005, Petr Pikal wrote: Hi Laura Pretty common question. You could find an answer going through archives. To copy to Excel through clipboard: write.excel<-function(tab, ...) write.table( tab, "clipboard", sep="\t", row.names=F) write.excel(your.data.frame) open Excel and press ctrl-C

Re: [R] R_LIBS difficulty ?

2005-04-11 Thread Peter Dalgaard
François Pinard <[EMAIL PROTECTED]> writes: > Hi, R people. > > I'm shy reporting this, as a bug in this area sounds very unlikely. Did > I make my tests wrongly? I'm still flaky at all this. Let me dare > nevertheless, who knows, just in case... Please don't kill me! :-) > > Not so long ago

RE: [R] glm family=binomial logistic sigmoid curve problem

2005-04-11 Thread Bill.Venables
Couple of points: * If you provide relative frequencies for the binomial response, you need also to give weights so that the actual counts can be reconstructed. This is what the warning message is telling you: if you reconstruct the counts using the default (unity) weights, the counts are not int

RE: [R] plotting Principal components vs individual variables.

2005-04-11 Thread Martin Maechler
> "BillV" == <[EMAIL PROTECTED]> > on Mon, 11 Apr 2005 14:15:08 +1000 writes: BillV> At the cost of breaking the thread I'm going to BillV> change your subject and replace 'Principle' by BillV> 'Principal'. I just can't stand it any longer... I understand - having had s

[R] Building R packages under Windows.

2005-04-11 Thread Duncan Golicher
Hello, My question is the following. Has anyone put together an "idiots" checklist of the steps needed to build a (small personal) package under Windows, or documented their own experiences of building packages under Windows? I ask this as last week there were some very interesting comments re