Re: [R] From KDE-surfaces to 3d-printing format?

2015-11-27 Thread Atte Tenkanen
Dear Duncan, Thank you! I think, I got conversion working by putting just writeSTL() after the contour3d-function (inside DrawDensity3D()). contour3d() writeSTL("Data3D.stl") At least, the stl-file seems to open in Pleasant3D and ply-file in MeshLab. :-) Best, Atte 27.11.2015, 16.04,

Re: [R] Graphing the Area of Definite Integral

2015-11-27 Thread Steven Stoline
many thanks steve On Fri, Nov 27, 2015 at 9:20 AM, peter dalgaard wrote: > Something like this? > > f <- function(x) x^3-2*x > curve(f(x), from=0, to=4) > abline(h=0) > n <- 16 > dx <- 4/n > right <- (1:n)*dx > left <- right - dx > mid <- right - dx/2 > fm <- f(mid) > points(mid, fm) > rect(lef

Re: [R] rjags cannot find JAGS-4.0.0

2015-11-27 Thread David Winsemius
> On Nov 27, 2015, at 11:27 AM, David Winsemius wrote: > >> >> On Nov 26, 2015, at 4:59 PM, Margaret Donald >> wrote: >> >> 1. Despite being in R with administrative rights the library "rjags" loads >> in a temporary location. >> >>> install.packages("rjags", dependencies=TRUE, >> +

[R] An error using frbs package

2015-11-27 Thread Baki UNAL via R-help
Hello I'm trying to run code below with frbs package. But I get an error saying: "Error in MF[k, temp[j + 2]] : subscript out of bounds" I couldn't spot the source of the error. What may be the problem? ##- varinp.mf <- matrix(c(4, 0, 0, 10, 50, 4, 10,

Re: [R] rjags cannot find JAGS-4.0.0

2015-11-27 Thread David Winsemius
> On Nov 26, 2015, at 4:59 PM, Margaret Donald > wrote: > > 1. Despite being in R with administrative rights the library "rjags" loads > in a temporary location. > >> install.packages("rjags", dependencies=TRUE, > + lib= "C:/Users/Margaret Donald/Documents/R/win-library/3.2") > trying U

Re: [R] Memory problem when changing a function

2015-11-27 Thread Marwah Sabry Siam
i didn't write them because I thought it would be long. I am using HPbayes package. I changed mp8.mle function. Two functions depend on this one; loop.optim and prior.likewts, so I changed them and rename them. The memory problem arises when applying the new loop.optim function named loop.optim_m.

Re: [R] metafor - Meta-Analysis of rare events / beta-binomial regression

2015-11-27 Thread Viechtbauer Wolfgang (STAT)
I would say the issue of how to deal with 'double-zero' studies is far from settled. For example, under the (non-central) hypergeometric model, studies with no events have a flat likelihood, so they are automatically excluded. That may go against our intuition (for various reasons, some of them

Re: [R] Graphing the Area of Definite Integral

2015-11-27 Thread peter dalgaard
Something like this? f <- function(x) x^3-2*x curve(f(x), from=0, to=4) abline(h=0) n <- 16 dx <- 4/n right <- (1:n)*dx left <- right - dx mid <- right - dx/2 fm <- f(mid) points(mid, fm) rect(left,0,right,fm) sum(fm*dx) 1/4 * 4^4 - 4^2 -pd On 27 Nov 2015, at 13:52 , Steven Stoline wrote:

Re: [R] detect computer drives

2015-11-27 Thread Adrian Dușa
On Fri, Nov 27, 2015 at 4:03 PM, Dirk Eddelbuettel wrote: > > On 27 November 2015 at 15:43, Adrian Duşa wrote: > | Is there a method to detect the computer's drives? > | That would include USB sticks, when they are recognised by the operating > | system. > > That is very obviously OS-dependent am

Re: [R] detect computer drives

2015-11-27 Thread Dirk Eddelbuettel
On 27 November 2015 at 15:43, Adrian Dușa wrote: | Is there a method to detect the computer's drives? | That would include USB sticks, when they are recognised by the operating | system. That is very obviously OS-dependent amd would need to be wrapped conditional on the OS. In R you can test for

Re: [R] Handling huge data of 17GB in R

2015-11-27 Thread Duncan Murdoch
On 27/11/2015 6:03 AM, Ajay Ramaseshan wrote: Hello, I am trying the DBSCAN clustering algorithm on a huge data matrix (26000 x 26000). I dont have the datapoints, just the distance matrix. It comes to 17 GB in the hard disk, and needs to be loaded into R to use the DBSCAN implementation (un

Re: [R] Handling huge data of 17GB in R

2015-11-27 Thread Ista Zahn
The easy way is to use a machine with say 32 Gb of ram. You can rent them by the hour from AWS or google cloud at very reasonable prices. Best, Ista On Nov 27, 2015 8:39 AM, "Ajay Ramaseshan" wrote: > Hello, > > > I am trying the DBSCAN clustering algorithm on a huge data matrix (26000 x > 26000

Re: [R] Graphing the Area of Definite Integral

2015-11-27 Thread Ben Tupper
Hi Steve, Give RSeek.org a try ... http://rseek.org/?q=show+area+under+curve There a loads of examples and blogs on this topic at RSeek.org. Under the 'Support' tab there is an exchange between two USM folk on this very topic. Cheers, Ben On Nov 27, 2015, at 7:52 AM, Steven Stoline wrote:

[R] detect computer drives

2015-11-27 Thread Adrian Dușa
Dear All, Is there a method to detect the computer's drives? That would include USB sticks, when they are recognised by the operating system. I believe to have read somewhere it's possible, but I am unable to find that message. Thank you for any hint, Adrian -- Adrian Dusa University of Bucha

[R] From KDE-surfaces to 3d-printing format?

2015-11-27 Thread Atte Tenkanen
Hi, Is it somehow possible to produce 3D-printing data from the kernel density map produced by the "DrawDensity3D"-function of "VecStatGraphs3D"-package? I'm not an expert of KDE-technics, just can use that function to produce surfaces... Best , Atte Tenkanen _

Re: [R] metafor - Meta-Analysis of rare events / beta-binomial regression

2015-11-27 Thread Markus Kösters
Dear Michael, Thank you very much for your input, that is very much appreciated. I have not considered that method, because it's rather outlawed in general. But it is also included in Kuss and if I understood correctly, the collapsing method (and the Cochrane method) both performed not too bad

[R] Graphing the Area of Definite Integral

2015-11-27 Thread Steven Stoline
Dear All: I am trying to explain to my students how to calculate the definite integral using the Riemann sum. Can someone help me to graph the area under the curve of the function, showing the curve as well as the rectangles between 0 and 4.. *f(x) = x^3 - 2*x * over the interval [0 , 4] with

Re: [R] metafor - Meta-Analysis of rare events / beta-binomial regression

2015-11-27 Thread Michael Dewey
Dear Markus This is not a direct answer to your question, I will leave that to Wolfgang but two thoughts: 1 - if all the studies have very sparse data @article{bradburn07, author = {Bradburn, M J and Deeks, J J and Berlin, J A and Localio, A R}, title = {Much ado about nothing: a compa