[R] A glitch (???) in tools::texi2pf.

2021-08-27 Thread Rolf Turner
I have found that tools::texi2pf() ignores changes to the *.bib file unless the *.bbl file is removed prior to re-running tools::texi2pdf(). I have constructed a minimal reproducible example which is contained in the attached file "mreprex.txt". This *.txt file should be split into two files, mre

Re: [R] uniroot

2021-08-27 Thread Rui Barradas
Hello, Yes, it's FAQ 7.31 but it's not uniroot's fault. The proper way of checking the result would be to call the function fun, not to take the digits output by the print method and compute the function's expression with them. rui@rui:~$ R -q -f rhelp.R fun <- function(x) {x^x -23} # Clea

Re: [R] uniroot

2021-08-27 Thread Jeff Newmiller
Yes. This kind of issue is covered in any decent undergraduate course in numerical methods... it is not specific to R. It is also related to FAQ 7.31. https://en.m.wikipedia.org/wiki/Root-finding_algorithms https://en.m.wikipedia.org/wiki/Floating-point_arithmetic#Representable_numbers,_conversi

[R] uniroot

2021-08-27 Thread Thomas Subia via R-help
Colleagues, I've been using uniroot to identify a root of an equation. As a check, I always verify that calculated root. This is where I need some help. Consider the following script fun <- function(x) {x^x -23} # Clearly the root lies somewhere between 2.75 and 3.00 uniroot(fun, lower = 2.7

Re: [R] Augmented Dickie-Fuller test (Nick Wray)

2021-08-27 Thread Adrian Trapletti
Hi Nick, If you are using adf.test() from tseries, then the reason is the linear trend incorporated into the regression. From the help: "The general regression equation which incorporates a constant and a linear trend is used and the t-statistic for a first order autoregressive coefficient equals

Re: [R] showing the complexity of r code.....

2021-08-27 Thread Jiefei Wang
Hi, It all depends on the R skill level of your audience. If they are also programmers, show them your Github page and a list of the packages you made would be great. If they do not have any R experience, do some work on R shiny, tell them you can do all kinds of magic things with the data, and vi

Re: [R] showing the complexity of r code.....

2021-08-27 Thread Eric Berger
One approach would be to put some (non-confidential) projects on a site such as GitHub so that people can examine your work. Sent from my iPhone > On 27 Aug 2021, at 9:18, akshay kulkarni wrote: > > dear members, >I am a stock trader and a data science freelancer.