Re: [R] any feedback on XL Solutions Courses for R?

2010-04-30 Thread Liviu Andronic
On 4/30/10, Dimitri Liakhovitski ld7...@gmail.com wrote: I can only provide feedback on one and only course I participated in. It was 3 years ago. It was for R beginners. And I guess, we did not get lucky - the person who was sent was not a good instructor. Our boss at the company I was

[R] panel regression with twoways random effects, on unbalanced data?

2010-04-09 Thread Liviu Andronic
Dear R users What would be the best way to approach estimating a panel regression with twoways random effects, on unbalanced data? Unfortunately, the plm package has no implementation of twoways random effects for unbalanced data. Currently I'm considering two approaches: - extend plm to cover

Re: [R] How to update JGR

2010-04-09 Thread Liviu Andronic
On 4/9/10, mau...@alice.it mau...@alice.it wrote: I recently updated R on Linus/SuSE 11.1 I complained because no on-line help was available from JGR after R update. I was told to update JGR as well. How can I do that ? I installed JGR on SuSE three times in the past with different R

Re: [R] checking bivariate normality

2010-04-06 Thread Liviu Andronic
On Tue, Apr 6, 2010 at 12:48 PM, arindam fadikar arindam.fadi...@gmail.com wrote: x - iris$Sepal.Length[1:50]/iris$Sepal.Width[1:50] y - iris$Petal.Length[1:50]/iris$Petal.Width[1:50] I want to check whether (x,y) follows a bivariate normal distribution or not,  using density plot or scatter

Re: [R] Please Post Planned Contrasts Example in lme {nlme}

2010-03-19 Thread Liviu Andronic
On 3/18/10, Martin Turcotte mart.turco...@gmail.com wrote: Hi I am running some linear and non-linear mixed effect models and would like to do some planned contrasts (a priori contrasts) I have looked in the help and in many forums and it seems possible to do so but don't understand how to

Re: [R] Playwith with Linux Mint

2010-03-19 Thread Liviu Andronic
Hello On 3/19/10, Research risk2...@ath.forthnet.gr wrote: I am having problems installing playwith on a Linux Mint ver. 8 (Helena) computer running R-2.10.1. src/base/R-2/R-2.10.1.tar.gz Linux Mint is Ubuntu-based, so a better venue would be r-sig-debian. Anybody facing similar

Re: [R] plm within models: is the correct F-statistic reported?

2010-03-17 Thread Liviu Andronic
Dear Achim On 3/16/10, Achim Zeileis achim.zeil...@uibk.ac.at wrote: Hence, when saying summary() different models with no effects are assumed. For gr_fe the model without effects just omits value/capital but keeps the firm-specific interecepts. For gr_lm not even the intercept is kept in

Re: [R] How good is R at making publication quality tables?

2010-03-17 Thread Liviu Andronic
On Wed, Mar 17, 2010 at 2:51 PM, Paul Miller pjmiller...@yahoo.com wrote: Am I right or wrong about this? If I am wrong, can anyone show me some examples of how R can be used to create really nice looking tables? I often make tables of adverse events in clinical trials that have n(%) values

Re: [R] plm within models: is the correct F-statistic reported?

2010-03-17 Thread Liviu Andronic
On 3/17/10, Achim Zeileis achim.zeil...@uibk.ac.at wrote: Here, you compare apples and oranges. gr_fe1 is of class plm and gr_fe1_null is of class lm. This does not fly. gr_fe1_lm - lm(invest ~ 0 + value + capital + firm + year, data = pgr) anova(gr_fe1_lm, gr_fe1_null) which does the

Re: [R] plm within models: is the correct F-statistic reported?

2010-03-17 Thread Liviu Andronic
On 3/17/10, Achim Zeileis achim.zeil...@uibk.ac.at wrote: Hmm, that sounds strange. Maybe something about the data pre-processing went wrong? I traced plm() in step-by-step mode, and the process stalls on plm.fit(), apparently after all the pre-processing. Depending on how unbalanced the

[R] plm within models: is the correct F-statistic reported?

2010-03-16 Thread Liviu Andronic
Dear R users I get different F-statistic results for a within model, when using time or twoways effects in plm() [1] and when manually specifying the time control dummies [2]. [1] vignette(plm) [2] http://cran.r-project.org/doc/contrib/Farnsworth-EconometricsInR.pdf Two examples below:

[R] panel regression diagnostics?

2010-03-16 Thread Liviu Andronic
Dear R users How should one approach diagnosing a regression on panel data? I am mostly talking about the within or Fixed Effects case. There are some panel-specific tests and diagnostics explained in require(plm) vignette(plm) But I was wondering if diagnostics on ordinary linear models (as

Re: [R] R and R commander

2010-03-14 Thread Liviu Andronic
On 3/14/10, john_j_carr...@mail.com john_j_carr...@mail.com wrote: I would appreciate any assistance as soon as possible (so I don't get too far behind in my studies). I am not sure what the exact issue is, but you can always start Rcmdr manually after the R start-up. Simply issue a

Re: [R] Using R in a corporate envinronment

2010-03-10 Thread Liviu Andronic
On Wed, Mar 10, 2010 at 6:07 PM, Fernando Henrique Ferraz Pereira da Rosa pess...@fernandohrosa.com.br wrote: reason I'm writing you. If you have any examples (preferably with references) and/or experience in a similar scenario please do write me. I've There is a recent reference in The

Re: [R] questions about Cusum

2010-03-07 Thread Liviu Andronic
Hello On 3/7/10, sdzhangping sdzhangp...@163.com wrote: package. Can you give me some materials about Cusum test? An example is more appreciated. There seem to be several packages dealing with 'cusum'. Try this: library(sos) findFn('cusum') Also, perform a search on Rseek. Regards Liviu

Re: [R] Matching rows in a Data set? I'm Stuck!!

2010-03-03 Thread Liviu Andronic
On 3/3/10, BioStudent s0975...@sms.ed.ac.uk wrote: What i really want to do is write an R script that says if the ID of dataset1 and 2 match (2nd row), print out that whole row into a new dataset3. Would this do what you want? x1 - iris[1:5,] x1 Sepal.Length Sepal.Width Petal.Length

Re: [R] two questions for R beginners

2010-03-02 Thread Liviu Andronic
On Mon, Mar 1, 2010 at 11:49 PM, Liviu Andronic landronim...@gmail.com wrote: On 3/1/10, Keo Ormsby keo.orms...@gmail.com wrote:  Perhaps my biggest problem was that I couldn't (and still haven't) seen *absolute beginners* documents. there was once a link posted on r-sig-teaching that would

Re: [R] turn character string into unevaluated R object

2010-03-02 Thread Liviu Andronic
On 3/2/10, carol white wht_...@yahoo.com wrote: How to turn a character string into an unevaluated R object? I want to load some I'm not sure if this is what you're looking for: as.name(iris) iris parse(text=iris) expression(iris) attr(,srcfile) text head(eval(as.name(iris)))

Re: [R] Customizing R

2010-03-01 Thread Liviu Andronic
On 3/1/10, Twaha Mlwilo uddessy2...@hotmail.com wrote: Iam newbie here and to R too.Is it possible to customize R to be used to people who has limited knowledge of statistics to perform simple data analysis? You might want to try one of the several R GUIs available [1]. [1]

Re: [R] Type-I v/s Type-III Sum-Of-Squares in ANOVA

2010-03-01 Thread Liviu Andronic
On 3/1/10, Ravi Kulkarni ravi.k...@gmail.com wrote: My questions: 1) exactly what is the difference between the two types of sums-of-squares? You might also want to read this [1]. [1] http://www.stats.ox.ac.uk/pub/MASS3/Exegeses.pdf Liviu __

Re: [R] How to Find Version of Installed Library?

2010-03-01 Thread Liviu Andronic
On 3/1/10, Lorenzo Isella lorenzo.ise...@gmail.com wrote: Sorry for the trivial question, but if you are using Linux and want to know the version of your installed libraries, what are you supposed to do? Load the package and then sessionInfo(). Liviu

Re: [R] two questions for R beginners

2010-03-01 Thread Liviu Andronic
On 3/1/10, Keo Ormsby keo.orms...@gmail.com wrote: Perhaps my biggest problem was that I couldn't (and still haven't) seen *absolute beginners* documents. Perhaps http://www.r-tutor.com/? Also recently a webinar on R [2] was held and it hosts complete course notes and recordings. Otherwise,

[R] error using pvcm() on unbalanced panel data

2010-02-25 Thread Liviu Andronic
Dear all I am trying to fit Variable Coefficients Models on Unbalanced Panel Data. I managed to fit such models on balanced panel data (the example from the plm vignette), but I failed to do so on my real, unbalanced panel data. I can reproduce the error on a modified example from the vignette:

Re: [R] error using pvcm() on unbalanced panel data

2010-02-25 Thread Liviu Andronic
On 2/25/10, Liviu Andronic landronim...@gmail.com wrote: I can reproduce the error on a modified example from the vignette: require(plm) data(Hedonic) Hed - pvcm(mv ~ crim + zn + indus + chas + nox + rm + age + dis +rad + tax + ptratio + blacks + lstat, Hedonic, model = within,index

Re: [R] two questions for R beginners

2010-02-25 Thread Liviu Andronic
On 2/25/10, Patrick Burns pbu...@pburns.seanet.com wrote: * What were your biggest misconceptions or stumbling blocks to getting up and running with R? * What documents helped you the most in this initial phase? I especially want to hear from people who are lazy and impatient. I'm

Re: [R] Plotting 15 million points

2010-02-25 Thread Liviu Andronic
On 2/25/10, Abhishek Pratap abhishek@gmail.com wrote: Any efficient methods to play with 10 million numbers in a vector. Did you try rggobi? Liviu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] export graphics for editing in Illustrator

2010-02-24 Thread Liviu Andronic
On 2/24/10, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: Any other ideas? Perhaps SVG? Also check this wiki page [1]. Liviu [1] http://rwiki.sciviews.org/doku.php?id=tips:graphics-misc:export __ R-help@r-project.org mailing list

Re: [R] plm issues: error for within or random, but not for pooling

2010-02-24 Thread Liviu Andronic
Dear Giovanni Thank you for the quick reply and sorry for not being able to respond in kind: since our last e-mail we decided to change the way we measure the variables, and this took some time. I managed to track down the original issue, I think, to an improperly specified subset vector to the

Re: [R] get problem

2010-02-24 Thread Liviu Andronic
On 2/24/10, Georg Ehret georgeh...@gmail.com wrote: I do not understand why this does not work...: Previously I ran into this and I am also curious why it doesn't work, but you can work around so: x - NULL x$a - 1:10 x$b - 11:20 x $a [1] 1 2 3 4 5 6 7 8 9 10 $b [1] 11 12 13 14

Re: [R] colour highlighting inputs and outputs in the R terminal?

2010-02-23 Thread Liviu Andronic
Hello On 2/23/10, Marc Schwartz marc_schwa...@me.com wrote: I was not aware of Romain's xterm256 package, but from a quick review of the manual, it would appear to not support an automated syntax highlighting capability. One seems to need to explicitly print output to the console using

Re: [R] R on 64-Bit…

2010-02-21 Thread Liviu Andronic
On 2/21/10, Axel Urbiz axel.ur...@gmail.com wrote: 2) MacOS or Unix. Sorry for my ignorance on this…but if I use any of these environments on 64-bit and installed R on any of those, this is all I need to have R working on 64-bit. How about installing specialized packages? Are the

Re: [R] Use of R in clinical trials

2010-02-18 Thread Liviu Andronic
On 2/18/10, Frank E Harrell Jr f.harr...@vanderbilt.edu wrote: How amazing that SAS is still used to produce reports that reviewers hate and that requires tedious low-level programming. R + LaTeX has it all over To simplify things, R + LyX could also be a solution. Liviu

Re: [R] for loop Vs apply function Vs foreach (REvolution enhancement)

2010-02-16 Thread Liviu Andronic
Hello On 2/16/10, julien cuisinier j_cuisin...@hotmail.com wrote: 1. apply Vs for loop Seems apply is (was?) supposed to be faster than using for loop, some posts mention that it is now more of a cosmetic function (wrapper for for loop) making the code essentially neater. Any

[R] OT: computing percentage changes with negative and zero values?

2010-02-16 Thread Liviu Andronic
Dear all I need to compute percentage changes of my data, but unfortunately they contain both negative and zero values, and I am quite confused on how to proceed. Searching the internet I found that many people ran into similar issues, with no obvious solution available. The last couple of weeks

Re: [R] (no subject)

2010-02-15 Thread Liviu Andronic
Hello You are more likely to get help if you provide a subject more informative than no subject. On 2/15/10, hussain abu-saaq hussain...@hotmail.com wrote: is there a good notes for loops(if else and while) in r. Check this [1][3], but also the R manuals [2]. [1]

Re: [R] Get rid of the first row of the LaTeX table generated by xtable

2010-02-14 Thread Liviu Andronic
On 2/14/10, Shige Song shiges...@gmail.com wrote: column seems to be an automatically generated ID. Is there a way to get rid of this column? Perhaps ?print.xtable include.rownames=F Liviu __ R-help@r-project.org mailing list

Re: [R] Help for numbers close to 1 in R

2010-02-13 Thread Liviu Andronic
On Sat, Feb 13, 2010 at 2:17 PM, cjmr cjregu...@gmail.com wrote: p=1e-49 1+p [1] 1 Try this: source(http://r-bc.googlecode.com/svn/trunk/R/bc.R;) p - bc(1e-49) p [1] .1 1+p [1] 1.1 You might

Re: [R] how to do calculations in data matrices?

2010-02-13 Thread Liviu Andronic
On Sat, Feb 13, 2010 at 5:39 PM, Zoppoli, Gabriele (NIH/NCI) [G] zoppo...@mail.nih.gov wrote: Please give me just a reference where I can find something useful. To complement Sarah's suggestions, a good place to start is Quick-R [1]. Liviu [1] http://www.statmethods.net/stats/descriptives.html

Re: [R] Novel (Maybe?) Visualizations

2010-02-12 Thread Liviu Andronic
On Fri, Feb 12, 2010 at 5:19 AM, stvienna wiener stvie...@gmail.com wrote:   - interactive input of graphs (or external program and import via GraphML) Perhaps latticist, rggobi? Is R the right programming language for that? (I think it is...) Are there any pointers? Books or tutorials on

Re: [R] replace a for loop

2010-02-10 Thread Liviu Andronic
On Wed, Feb 10, 2010 at 9:50 AM, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: I'm still quite new in R and I don't really understand this whole vectorization thing. See [1] for an article on vectorisation and loops in R. Liviu [1] http://www.r-project.org/doc/Rnews/Rnews_2008-1.pdf

Re: [R] What is the equivalent function in R to xyplot in S?

2010-02-08 Thread Liviu Andronic
On 2/8/10, Ista Zahn istaz...@gmail.com wrote: Try help.search(xyplot). If nothing comes up, try RSiteSearch(xyplot). Otherwise, require(sos) findFn(xyplot) Liviu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] plm issues: error for within or random, but not for pooling

2010-02-04 Thread Liviu Andronic
Dear all I am working on unbalanced panel data and I can readily fit a pooling model using plm(), but not a within or random model. Reproducing the examples in vignette(plm) and in the AER package I encountered no such issues. ##unfortunately I cannot disclose the data, and it is too big anyway

Re: [R] Interactively editing point labels in a graph

2010-02-03 Thread Liviu Andronic
Hello On 2/3/10, trece por ciento el13porcie...@yahoo.com wrote: Dear experts, I would like to be able to interactively (if possible, with mouse and clik) edit point labels in graphs, Try playwith. Liviu particularly in multivariate graphs, such as the biplots you get after a

Re: [R] selecting a group of points from a scatterplot?

2010-02-03 Thread Liviu Andronic
On 2/3/10, j.delashe...@ed.ac.uk j.delashe...@ed.ac.uk wrote: Many graph plotting programs allow you to pick a group of points directly from the graph by circling them with teh mouse cursor. Is that soemthing that I can do in R? I am not sure that they will do exactly what you need, but check

Re: [R] Interactively editing point labels in a graph

2010-02-03 Thread Liviu Andronic
On 2/3/10, trece por ciento el13porcie...@yahoo.com wrote: 2. Can playwith draw ellipses or any other figure around selected points? The closest I can find is drawing a rectangle. See the Tools menu. (For the first question it seems my fault, but I don't know how to fix it) I don't think

Re: [R] Update problem? Rcmdr disappears, won't re-open

2010-02-02 Thread Liviu Andronic
On 2/2/10, briancady413 briancady...@yahoo.com wrote: I am trying unsuccessfully to open RcmdrPlugin.IPSUR from within Rcmdr, via the pulldown tools menu. It insists I restart Rcmdr, which I let happen, then Rcmdr doesn't restart, and then I can not restart it using R's package loading

Re: [R] playwith error message

2010-02-01 Thread Liviu Andronic
Hello On 2/1/10, Sigbert Klinke sigb...@wiwi.hu-berlin.de wrote: I'am using the playwith library to write my own small GUI application. But I get the following error under Windows and Linux (Ubuntu): Error in if ((modeOK %in% c(Identify, Brush)) (actions$ident == : Fehlender Wert, wo

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-02-01 Thread Liviu Andronic
On 2/1/10, Research risk2...@ath.forthnet.gr wrote: do_something_else = function(playstate) ###Export here mean value of sequence playState$env$i### Would this do the trick? playwith(xyplot(dat[,c(1,i)]), parameters = list(i = 1:100, do_something = function(playState)

Re: [R] playwith error message

2010-02-01 Thread Liviu Andronic
On 2/1/10, Sigbert Klinke sigb...@wiwi.hu-berlin.de wrote: efaApp - function(data, ...) { playwith (myplot(data[,8:9]), click.mode = Brush, ) } This does work if you use plot() directly: efaApp - function(data, ...) { playwith (plot(data[,1:2]),

Re: [R] Rearranging long dataframe for printing in Sweave (and recoding a factor)

2010-01-24 Thread Liviu Andronic
Hello On 1/24/10, Jean-Louis Abitbol abit...@sent.com wrote: I have to print a dataframe with 1000 rows and 2 columns for a report done with Sweave. I could use Hmisc latex function with longtable option. However it is a waiste of space and paper given that I have only 2 (or sometime

Re: [R] Please Please Please Help me!!

2010-01-20 Thread Liviu Andronic
Hello On Wed, Jan 20, 2010 at 7:00 AM, Madhavi Bhave madhavi_bh...@yahoo.com wrote: Sir, I am not asking for the modification of existing code as it is running fine with a single set of data (and I have checked that the output tallies with other methods). I just want to use this code for

Re: [R] Rotating pca scores

2010-01-19 Thread Liviu Andronic
Hello On 1/18/10, francesca.ior...@googlemail.com francesca.ior...@googlemail.com wrote: Does anybody know how I can obtain/calculate rotated PC scores with R? You might want to try principal() in package psych, and see if it does what you need. With this function you can use all the rotations

Re: [R] Number of download.

2010-01-19 Thread Liviu Andronic
Hello On Tue, Jan 19, 2010 at 7:51 PM, Christophe Genolini cgeno...@u-paris10.fr wrote: Is there a way to know how many times an R package (on CRAN) has been download ? Recently this page [1] was set up, but it doesn't seem updated for some time now. Liviu [1]

Re: [R] Number of download.

2010-01-19 Thread Liviu Andronic
On 1/19/10, Barry Rowlingson b.rowling...@lancaster.ac.uk wrote: In a similar vein, has anyone ever put any 'phone home' code in a package, so that authors can track usage? Something in the package startup code that pings a logging server, for example? Yes I know doing such a thing

Re: [R] Can I save R graphs as a R objects

2010-01-15 Thread Liviu Andronic
On 1/15/10, vikrant vikrant.shi...@tcs.com wrote: can I edit my chart as in Excel. Sort of, using playwith. You can always try to place the the plot call inside playwith(). For example, require(playwith) playwith(plot(1:10)) Liviu __

Re: [R] Updated comparison table for SAS-SPSS Add-ons and R Functions

2010-01-14 Thread Liviu Andronic
Hello On 1/13/10, Muenchen, Robert A (Bob) muenc...@utk.edu wrote: http://r4stats.com/add-on-modules and I would very much appreciate any feedback you might have on it. Perhaps add latticist and playwith to the list of Graphics, Interactive? Regards Liviu

Re: [R] Updated comparison table for SAS-SPSS Add-ons and R Functions

2010-01-14 Thread Liviu Andronic
On 1/14/10, Liviu Andronic landronim...@gmail.com wrote: Perhaps add latticist and playwith to the list of Graphics, Interactive? .. and remove latticist from Graphics, Static. Also, add rattle to Graphical user interfaces? Liviu __ R-help@r

Re: [R] = returns wrong result? Why

2010-01-12 Thread Liviu Andronic
On 1/13/10, Trafim Vanishek rdapam...@gmail.com wrote: this is the output result Rk[47] = RB[21] [1] FALSE Rk[47] [1] 0.002842007 RB[21] [1] 0.002842007 I would suspect that, if you're looking at all the digits, the two are not exactly the same. I would try round(Rk[47], 10) =

Re: [R] strange behavior of R

2010-01-09 Thread Liviu Andronic
On Fri, Jan 8, 2010 at 10:57 PM, Fahim fahim...@gmail.com wrote: arr [1] y1 y2 At this moment 'arr' no longer has two dimensions, but only one. So you can access it only as a vector. Problem: I want to access the first row now using: arr[1, ] Error in arr[1, 1] : incorrect number of

Re: [R] string functions

2010-01-09 Thread Liviu Andronic
On 1/9/10, Laetitia Schmid laetitia.sch...@gmx.ch wrote: Does anybody know a string function that would calculate how many characters two strings share? I.e. (Hello World,Hello Peter) would be 7. Perhaps package ‘stringr’ has something related? Liviu

Re: [R] Online R documentation

2010-01-08 Thread Liviu Andronic
On Fri, Jan 8, 2010 at 10:06 PM, Jim Lemon j...@bitwrit.com.au wrote: It's not the first time I've said it, but Jonathan Baron's search engine has always provided answers when my local R help can't. The only change I would make is to default to searching R functions only. Another interface to

Re: [R] Finally, the first R spam!

2010-01-07 Thread Liviu Andronic
On 1/7/10, David Croll david.cr...@gmx.ch wrote: Just for fun (or concern): I received a R spam mail. Perhaps the first in history... No, not quite first. There was one before on Inference with R, at least. Liviu __ R-help@r-project.org mailing list

Re: [R] debugging package

2010-01-06 Thread Liviu Andronic
Hello On 1/6/10, Markus Weisner public.mar...@mac.com wrote: * checking whether package 'NFIRS' can be installed ... WARNING Found the following significant warnings: missing link(s): ~~fun~~ CLASSNAME-class See '/Users/markus/Dropbox/NFIRS_S4/NFIRS.Rcheck/00install.out' for

Re: [R] bootstrapping a matrix and calculating Pearson's correlation coefficient

2010-01-05 Thread Liviu Andronic
Hello On 1/5/10, Lee William leeon...@gmail.com wrote: I have got matrix 'data' of dimension 22000x600. I want to make 50 independent samples of dimension 22000x300 from the original matrix 'data'. And then want to calculate pearsons CC for each of the obtained 50 matrices. It seems it is

Re: [R] MLE optimization

2010-01-04 Thread Liviu Andronic
Hello On 1/4/10, jckval jcnogueirafi...@gmail.com wrote: Alternatively, could anyone suggest a good MLE tutorial and package? Search for MLE on Rseek.org and among other results check the Task Views. Also, search for MLE in vignettes on RSiteSearch [1]. [1]

Re: [R] Emacs vs Eclipse vs Rcmdr

2010-01-03 Thread Liviu Andronic
Hello On 1/3/10, Charlotte Maia mai...@gmail.com wrote: Rcmdr Pros and Cons: - I haven't used it for a long time, so can't really comment. - However, I was surprised by how many reverse dependencies it has. So I will assume it has some potential. Rcmdr is probably not the best editor

Re: [R] Literature analysis

2009-12-14 Thread Liviu Andronic
Hello On 12/14/09, Schwan s.s.hosse...@utwente.nl wrote: I have tried the Rcmdr GUI but when i load the data, there is no active data set(this is the error message i got). Can you post the exact error message? Also, could you post a sample data file (for example, on tinyupload.com) so that

Re: [R] Determining the correlation coefficient?

2009-12-14 Thread Liviu Andronic
Hello On 12/14/09, Anja Mohorko nekostrg...@yahoo.com wrote: Hello, I need your help! Probably the answer is quite easy, but still ... How can I sample two (or more) vectors of data from a normal distribution so they are correlated with an exact value I select (for example pearson's r =

Re: [R] Literature analysis

2009-12-14 Thread Liviu Andronic
On 12/14/09, Schwan s.s.hosse...@utwente.nl wrote: [2] ERROR: more columns than column names I looked at the data and there is a column name called ISBN#. Try to remove # and then import the data. Liviu __ R-help@r-project.org mailing list

Re: [R] Literature analysis

2009-12-14 Thread Liviu Andronic
On 12/14/09, Schwan s.s.hosse...@utwente.nl wrote: but unfortunately somehow the package bibtex dont want to install (actually it installs, but if i follow your instruction: bib - read.bib( /home/schwan/Desktop/science.bib ) I got an Error Message which says: Error: could not find

[R] debug an error that incapacitates R?

2009-12-13 Thread Liviu Andronic
Dear all How should I attempt debugging this error? sosInit() Error: invalid connection When this happens R refuses to run anything: 2+2 Error: invalid connection sessionInfo () Error in stdout() : invalid connection Debugging it seems impossible. options(error=recover) sosInit() Error:

Re: [R] debug an error that incapacitates R?

2009-12-13 Thread Liviu Andronic
Hello And thank you for the quick answer. On 12/13/09, Duncan Murdoch murd...@stats.uwo.ca wrote: I think you need to go back to old-fashioned debugging methods. Identify the line the triggers the error, by using debug() and single stepping through sosInit(), or by adding print() or cat()

Re: [R] Literature analysis

2009-12-11 Thread Liviu Andronic
Hello On 12/11/09, Schwan s.s.hosse...@utwente.nl wrote: However, I dont know how to tell R that it just should look for e.g. author,keywords and year and how to plot these for example on x axis the author and y axis the keywords and on z axis the year? I suggest that you try to get going

Re: [R] Announce: edtdbg, integrating R's debug() with your text editor

2009-12-06 Thread Liviu Andronic
Hello On 12/7/09, Norm Matloff matl...@cs.ucdavis.edu wrote: Please give me your comments. I probably will upload to CRAN at some point, possibly after an ESS guru contributes the ESS code. :-) Do you think that the package can be made to work with Geany? Thank you Liviu

[R] options(width=100) ignored on start-up

2009-12-04 Thread Liviu Andronic
Dear all Is it normal that R ignores options(width=100) at start-up? Although li...@debian-liv:~$ cat /usr/lib/R/etc/Rprofile.site | grep width options(width = 100) , R will start with [Previously saved workspace restored] options()$width [1] 80 Am I doing something wrong? Liviu

Re: [R] Learning R - View datasets

2009-11-27 Thread Liviu Andronic
Hello On Fri, Nov 27, 2009 at 4:46 AM, Brock Tibert btibe...@yahoo.com wrote: In short, I know that data() lists all of the available datasets, data(wines) will load the dataset wines, but how can I look at the raw data? See this [1]. [1]

Re: [R] R Packages Crack the 3,000 Mark!

2009-11-25 Thread Liviu Andronic
Hello On 11/24/09, Muenchen, Robert A (Bob) muenc...@utk.edu wrote: I don't know if this has been reported before, but according to Henrique Dallazuanna's program (below) the number of R packages has exceeded the 3,000 mark. The count today is 3,175. I ran this just a couple of months

Re: [R] From R to LaTeX to pdf?

2009-11-24 Thread Liviu Andronic
Hello On 11/24/09, Joel Fürstenberg-Hägg joel_furstenberg_h...@hotmail.com wrote: I'm trying to use the xtable package to create nice anova tables, but how do I do to produce a pdf from the resulting LaTeX table? I've tried WinShell and MiKTeX, but I couldn't get any of them working...

Re: [R] other decriptive stats packages

2009-11-22 Thread Liviu Andronic
On 11/21/09, frenchcr frenc...@btinternet.com wrote: are there any more packages that help decribe and explore data sets See numSummary() in Rcmdr. Liviu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] PLoS, Arial, R linux

2009-11-19 Thread Liviu Andronic
Hello On Thu, Nov 19, 2009 at 11:00 AM, Ted Harding ted.hard...@manchester.ac.uk wrote: While there is a section (Enable the use of Arial in R) in the Guidelines (URL [2]), the instructions assume the presence of Arial .ttf files, not usually the case with Linux. If you have a Windows

Re: [R] [Follow-up] Re: PLoS, Arial, R linux

2009-11-19 Thread Liviu Andronic
On 11/19/09, Ted Harding ted.hard...@manchester.ac.uk wrote: However, (a) I do not have the 'ttf2afm' program; (b) Synaptic cannot find it in the repositories. http://packages.debian.org/search?searchon=contentskeywords=ttf2afmmode=exactfilenamesuite=testingarch=any Liviu

Re: [R] JGR GUI for R-2.10.0 Help Print

2009-11-16 Thread Liviu Andronic
Hello On 11/15/09, Bob Meglen bmeg...@comcast.net wrote: I have updated R 2.9.1 to 2.10.0. and JGR GUI 1.7. I am running Windows XP. I can't seem to get the JGR Print or Help functions to work. The system locks and requires me to stop the process. In the past I have preferred the opreation

Re: [R] Odp: ^ operator

2009-11-16 Thread Liviu Andronic
On 11/16/09, Ted Harding ted.hard...@manchester.ac.uk wrote: Not in this case (see below), though of course in general - takes precedence over ^, so, for example, in the expression -2^(1/3) the - is applied first, giving (-2); and then ^ is applied next, giving (-2)^(1/3). There is a

Re: [R] starting html help for a package?

2009-11-13 Thread Liviu Andronic
On 11/12/09, Duncan Murdoch murd...@stats.uwo.ca wrote: help(package=boot, help_type = html) The page displayed there was never an HTML page. In the future it probably should be, but it hasn't been implemented yet. At the moment is there a way to call the html help for a package, that is

[R] starting pdf help for a package? (was starting html help for a package?)

2009-11-13 Thread Liviu Andronic
Dear all A sequel to my previous post. On Fri, Nov 13, 2009 at 11:33 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: At some point in the future the package?info page will be able to be generated automatically, and I imagine it will end up containing the package info you saw.   It would make

[R] starting html help for a package?

2009-11-12 Thread Liviu Andronic
Dear all Shouldn't this start the html help for the chosen package? help(package=boot, help_type = html) Instead, the text version is displayed in less (I believe). However, I have no issues to start the html help with the following. help.start() starting httpd help server ... done If

Re: [R] HEEELP!!!!

2009-11-10 Thread Liviu Andronic
Hello On 11/10/09, Ana María Prieto prieto.anama...@gmail.com wrote: When copying the script in the R console, it seems that there is a problem with the ~ symbol. this symbol is not in the keyboard, so I select it from spetial characters, For what language is your keyboard designed? If

Re: [R] Robust ANOVA or alternative test?

2009-11-02 Thread Liviu Andronic
Hello On 11/2/09, jinyan fan fanjin...@yahoo.com wrote: to address this issue, either by some sort of Robust ANOVA procedure, or by some alternative tests? Thanks a lot. I cannot address this specific question, but you may want to address robustness-related queries to r-sig-robust, and

Re: [R] how to test for stationarity in time series?

2009-10-30 Thread Liviu Andronic
On 10/30/09, Luna Laurent luna.laurent@gmail.com wrote: Could anybody tell me how to test for stationarity in time series? http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4q=stationarity+time-seriessa=Search+functions%2C+lists%2C+and+morecof=FORID%3A11 Liviu

[R] identify which commands have generated graphics?

2009-10-30 Thread Liviu Andronic
Dear all Is it possible to programmatically detect which commands have generated a graphic to the x11() graphics device? When in front of the computer, it is easy to see that after a command---say, plot(1:10)---a graphics window opens/activates and displays a graphic. But is there a way to detect

Re: [R] write to RTF format - possible?

2009-10-29 Thread Liviu Andronic
Hello On 10/28/09, Mark Heckmann mark.heckm...@gmx.de wrote: To write a .txt file I use write.table() Is there a way to write to a .rtf file as well? With odfWeave [1] you can create OOo documents, from which the conversion to .rtf would be trivial. If you wan to export a table, then you

Re: [R] function

2009-10-26 Thread Liviu Andronic
On 10/26/09, Val valkr...@gmail.com wrote: Is there a function in R that handle nonparametric model for survival analysis (Cox or Weibull)? http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4q=survival+analysissa=Search+functions%2C+lists%2C+and+morecof=FORID%3A11 Liviu

Re: [R] basic statistics to csv

2009-10-26 Thread Liviu Andronic
Hello On 10/26/09, lanc...@fns.uniba.sk lanc...@fns.uniba.sk wrote: nsu - numSummary(x[,c(a, b, c)], statistics=c(mean, sd, quantiles), quantiles=c(0,.25,.5,.75,1)) write.csv(nsu, file = numsummary.csv) I get the ERROR: cannot coerce class numSummary into a data.frame message. Try

Re: [R] help regarding creating package for GUI

2009-10-22 Thread Liviu Andronic
On 10/22/09, Peter Ehlers ehl...@ucalgary.ca wrote: But as to your query: perhaps you could get some ideas from the Greg Snow's TeachingDemos package. Also, check the related Rcmdr plug-in [1]. Liviu [1] http://cran.r-project.org/web/packages/RcmdrPlugin.TeachingDemos/index.html

[R] access elements of summary.aov?

2009-10-19 Thread Liviu Andronic
Dear all How do I access individual elements of a summary.aov object? data(iris) AnovaModel.1 - aov(Sepal.Length ~ Species, data=iris) tmp - summary(AnovaModel.1) tmp Df Sum Sq Mean Sq F value Pr(F) Species 2 63.231.6 119 2e-16 *** Residuals 147 39.0 0.3

Re: [R] access elements of summary.aov?

2009-10-19 Thread Liviu Andronic
On 10/19/09, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: It is a 'List of 1', so you want tmp[[1]] which you can access as a data frame. As the help file says Thank you. I forgot how to access elements of lists. Regards Liviu __

Re: [R] ozone data

2009-10-17 Thread Liviu Andronic
On 10/17/09, Julius Tesoro jutes...@yahoo.com wrote: I am looking at the plyr package and I am intrigued at how data(i.e. ozone, baseball) is loaded without having to type data(ozone). Are they automatically loaded when i call library(plyr)? I want to do the same thing when I make my

Re: [R] ozone data

2009-10-17 Thread Liviu Andronic
On 10/17/09, Julius Tesoro jutes...@yahoo.com wrote: wow thanks but how do i load data just by typing ozone on the console? It would probably suffice to include the dataset as an object in your package, and then `data(ozone)' should bring it up as soon as your package is loaded. Look at the

[R] Easy way to `iris[,-Petal.Length]' subsetting?

2009-10-17 Thread Liviu Andronic
Dear all What is the easy way to drop a variable by using its name (and not its number)? Example: data(iris) head(iris) Sepal.Length Sepal.Width Petal.Length Petal.Width Species 1 5.1 3.5 1.4 0.2 setosa 2 4.9 3.0 1.4 0.2

Re: [R] currency conversion function?

2009-10-16 Thread Liviu Andronic
On 10/15/09, Henrique Dallazuanna www...@gmail.com wrote: foo - function(from, to, date){ url - http://www.oanda.com/convert/classic?script=..%2Fconvert%2Fclassiclanguage=envalue=1; params -

<    1   2   3   4   5   6   >