[R] New free book to help learn the basics of data analysis with R in a single day

2017-04-09 Thread Sivakumaran Raman
I have written a book to help new users of R, who are familiar with at least one programming other than R, learn the basics of data analysis in a single day. The book is free and released under the most non-restrictive of the creative commons licenses. There is R code that accompanies the book.

[R] nlminb error

2017-04-09 Thread Rodrigo Andres Cristancho Castellanos
Hi, I´m having troubel using nlminb this is the warning that shows up. Warning: Cholesky factorization 'dpotrf' exited with status: 1 Variance of the prediction error can not be computed. Warning: Cholesky factorization 'dpotrf' exited with status: 1 Determinant of the variance of the prediction

Re: [R] nlminb error

2017-04-09 Thread Bert Gunter
I suspect, as you hinted, there's little to no hope that anyone will be willing or able to navigate your code. **Usually** (whatever that means!) these sorts of problems can be traced back to overparameterization -- too few data, which could also mean a lot of "correlated" data, chasing too many

Re: [R] Finding Infimum in R

2017-04-09 Thread Bert Gunter
Then it's trivial. Check values at the discontinuities and find the first where it's <0 at the left discontinuity and >0 at the right, if such exists. Then just use zero finding on that interval (or fit a line if everything's linear). If none exists, then just find the first discontinuity where

Re: [R] nlminb error

2017-04-09 Thread Bert Gunter
Whether you have converged to a global optimum or not depends on the nature of the likelihood surface. Have you tried different starting values? As for the warning, I leave that to Prof. Nash, as he *is* (way) more knowledgeable. However, I suspect the answer is yes, it is concerning. Are you at a

[R] Looking for

2017-04-09 Thread li li
Dear all, For a piecewise function F similar to the attached graph, I would like to find inf{x| F(x) >=0}. I tried to uniroot. It does not seem to work. Any suggestions? Thank you very much!! Hanna F.pdf Description: Adobe PDF document

Re: [R] Looking for

2017-04-09 Thread Bert Gunter
Details matter! 1. Are the points of discontinuity known? This is critical. 2. Can we assume monotonic increasing, as is shown? -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his

Re: [R] Finding Infimum in R

2017-04-09 Thread li li
Hi Burt, Yes, the function is monotone increasing and points of discontinuity are all known. They are all numbers between 0 and 1. Thanks very much! Hanna 2017-04-09 16:55 GMT-04:00 Bert Gunter : > Details matter! > > 1. Are the points of discontinuity known?

Re: [R] Finding Infimum in R

2017-04-09 Thread Boris Steipe
Is the function linear between the discontinuities? Can you give an example of how the function is specified? B. > On Apr 9, 2017, at 8:38 PM, li li wrote: > > Hi Burt, >Yes, the function is monotone increasing and points of discontinuity > are all known. > They are

Re: [R] [FORGED] difference metric info of same font on different device

2017-04-09 Thread Paul Murrell
Hi I think you are hitting the limit of what R's PostScript device can do with CID fonts (particularly with Latin characters). Have you tried the cairo_ps() device ? Paul On 7/04/2017 8:05 p.m., Jinsong Zhao wrote: Hi there, I try to plot with custom fonts, which have good shape Latin and

[R-es] Perdido en un bucle

2017-04-09 Thread patricio fuenmayor
Hola. Yo lo hiciera con la función cut {base} de la siguiente forma: x <- data.frame(b=c(0, 0, 0.001, 0.374, 0.026, 1.000)) x$c <- cut(x$b,c(-1,0.001,0.01,0.05,1),c("***","**","*","")) x Saludos. [[alternative HTML version deleted]] ___