Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Dear Don, Thank you for your information. Bw Roberto 2018-04-25 23:13 GMT+02:00 MacQueen, Don : > Try putting this >options(echo=TRUE) > at the beginning of your script > > See ?source for a clue > > -Don > > -- > Don MacQueen > Lawrence Livermore National Laboratory > 7000 East Ave., L-627

[R] Zero errors : Bug in my R code ?

2018-04-25 Thread varin sacha via R-help
Dear R-experts, I guess I have a problem with my fast function (fast tau estimator) here below. Indeed, zero errors look highly suspicious. I guess there is a bug in my R code. How could I correct my R code ? # install.packages( "robustbase" ) # install.packages( "MASS" ) # install.packages( "q

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread MacQueen, Don
Try putting this options(echo=TRUE) at the beginning of your script See ?source for a clue -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 4/24/18, 2:23 AM, "R-help on behalf of P. Roberto Bakker"

Re: [R] How to visualise what code is processed within a for loop

2018-04-25 Thread MacQueen, Don
Your code doesn't make sense to me in a couple of ways. Inside the loop, the first line assigns a value to an object named "t". Then, the second line does the same thing, assigns a value to an object named "t". The value of the object named "t" after the second line will be the output of the if

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Hi Greg, Thank you for all information. Bw Roberto Op di 24 apr. 2018 21:42 schreef Greg Snow <538...@gmail.com>: > Look at the spin and stitch functions in the knitr package if you want > to process an existing script into an output that mixes the code run > with the output. > > Look at the

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
Hi Thierry, Thank you for your information. Bw Roberto Op di 24 apr. 2018 12:01 schreef Thierry Onkelinx : > Dear Roberto, > > The easiest way IMHO is to convert your script into an R markdown > document. See https://rmarkdown.rstudio.com/ > > Best regards, > > ir. Thierry Onkelinx > Statisticu

[R] FW: Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-25 Thread Donald Macnaughton
Thanks Jeff, I attached a file with the program to my earlier email because the posting guide seemed to imply that non-binary attachments would work. But I see that the file was stripped off. Restating the problem: I'm drawing a paneled histogram using the lattice package. I've succeeded in

[R] Fitting survival trees with competing risk

2018-04-25 Thread Mario Petretta
Dear all, I'm interested in fitting survival trees with competing risk analysis. The tree should show the cumulative incidence function for each terminal node . I read several paper illustrating this possibility, but to the best of my knowledge no R code are reported. There is any R pa