Displaying 2 results from an estimated 2 matches for "rlogsplin".
Did you mean:
logsplin
2007 May 31
1
R keeps crashing when executing 'rlogspline'
Dear List,
I have a simple model as follows:
x <- rnorm(500)
library(logspline)
fit <- logspline(x)
n <- 1000000
y <- replicate(n, sum(rlogspline(rpois(1,10), fit))) # last line
The problem I keep getting is R crashes when doing the last line. It
seems to be fine if n is small, but not if n is 1000000. The message
I keep getting is:
"R for Windows GUI front-end has encountered a problem and needs to
close. We are sorry for the inc...
2007 Apr 02
3
Random number from density()
Hello,
I'm writing some genetic simulations in R where I would like to place
genes along a chromosome proportional to the density of markers in a
given region. For example, a chromosome can be presented as a list of
marker locations:
Chr1<-c(0, 6.5, 17.5, 26.2, 30.5, 36.4, 44.8, 45.7, 47.8, 48.7, 49.2,
50.9, 52.9, 54.5, 56.5, 58.9, 61.2, 64.1)
Where the numbers refer to the locations of