similar to: minor quirk in rnbinom (PR#1669)

Displaying 20 results from an estimated 4000 matches similar to: "minor quirk in rnbinom (PR#1669)"

2002 Jun 14
2
minor quirk in rnbinom
I don't want to spoil a nice joke, and recognise it's not a bug as it does have the intended effect, but the error message that is returned if rnbinom is given four parameters is slightly obscure: > rnbinom(0.5,0.5,0.5,0.5) Error in rnbinom(0.5, 0.5, 0.5, 0.5) : couldn't find function "error" > Cheers, Mike.
2017 Jan 31
1
rnbinom Returns Error that says optional argument is missing
I am trying to reset the default arguments in the rnbinom function with the following example code: params <- c("size" = 1, "mu" = 1) formals(rnbinom)[names(params)] <- params rnbinom(n = 10) It returns the following: Error in rnbinom(n = 10) : argument "prob" is missing, with no default If I set the defaults with this code: params <- c("size"
2014 Feb 23
1
Random Count Generation with rnbinom
The documentation states : An alternative parametrization (often used in ecology) is by the mean ?mu?, and ?size?, the dispersion parameter. However, this fails : > rnbinom(10, mu = 100, size = 0) [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN Warning message: In rnbinom(10, mu = 100, size = 0) : NAs produced For dispersion set to 0, it should work like drawing from a Poisson distribution.
2002 Apr 03
1
optim()
I was having some problems persuading optim() to give me the answers I wanted, & simplified down to: sqr<-function(x){(x+1)^2} optim(1,sqr) I accept this is a hammer to crack a nut, but was still expecting the answer -1. I got: $par [1] -0.8 $value [1] 0.04 $counts function gradient 12 NA $convergence [1] 0 $message NULL so I've
2003 Apr 12
1
R-1.7.0-beta: in check-all test-IsAs fails on WinNT4.0
Todays R-1.7.0-beta (see below) compiles fine on, but it doesn't pass make check-all on WinNT4.0, SP6. Looking closer, test-IsAs fails: D:\uwe-ns\R-1.7.0\tests>make -f Makefile.win test-IsAs running tests of consistency of as/is.* make[1]: Entering directory `/cygdrive/d/uwe-ns/R-1.7.0/tests' creating 'isas-tests.R' make[1]: *** [isas-tests.R] Error 253 make[1]: Leaving
2002 Jun 14
0
Rcmd on Windows (fwd)
Hi there, Finally I got this "Rcomd SHLIB" to like me! The reason was because I did not log in my computer as "administrator", which caused some problem of perl being found... Anyway, thank you all for the prompt and intelligent suggestions. Best, Yunda ---------- Forwarded message ---------- Date: Thu, 13 Jun 2002 18:30:45 -0700 (PDT) From: Yunda Huang <yunda at
2003 Apr 23
3
changing dir to network drive in Rgui caused crash ( 1.7. 0)
Uwe & Marc, Adding the --vanilla flag doesn't help. Actually, the crash happens if I browse to a folder on a mapped drive. I.e., if I type in "q:\Andy" in the text box, it works, but if I try to browse to Q:\Andy and then click on OK, that's when it crashes. Andy > From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de] > > Marc Schwartz wrote: >
2008 Jan 26
0
Who can tell me how I adjust the R code for bootstrapping the Cox model?
Hi, The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP. It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap library, with slight differences in my outputs. > library(boot) > library(survival) >
2008 Jan 25
0
Please help me
Hi, The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP. It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap library, with slight differences in my outputs. > library(boot) > library(survival)
2001 Jan 18
0
dotplot: character size of labels (PR#816)
There seems to be a bug in "dotplot" concerning the "cex" parameter. Setting cex has no effect on the character size of the labels of the points. This problem was posted to r-help today (Thu, 18 Jan 2001); the solution given by Brian Ripley (and Uwe Ligges) seems to work for me. Heinrich Rinner. > version _ platform i386-pc-mingw32 arch x86
2008 Jan 26
1
(no subject)
Hi, The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP. It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap library, with slight differences in my outputs. > library(boot) >
2008 Feb 19
4
Patch for Analog Devices compiler & fixed-point AGC
Hi Jean-Marc, As I told you, bank is a reserved keyword in Analog Devices compiler for Blackfin architecture. So we need to change the variables named bank to something else. Here's a patch that changes bank to bnk in the 3 concerned files. (Hope the format is OK) About my previous problems with the Blackfin: -> strange block repetition that could be cancelled by the AEC I was busy
2008 Jan 25
2
Help Me to Adjust the R Code
Hi, The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP. It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap library, with slight differences in my outputs. > library(boot) > library(survival) >
2011 Feb 13
3
How to print and save simulated data?
wanfairos wrote: > > Dear members; > > I have one problem to display my simulated data. Basically, I've generated > a set of rnorm (std.norm.mat)and rnbinom (gen.data) data to test on the > performance of FE Poisson model estimates > > ... Long self-contained example shorted > > my.data<-rep(9999,sim.size) > > for(i in 1: sim.size){ > ... >
2004 Nov 10
0
glm.nb
Hi, I make some simulations with rnbinom and try to test with glm.nb. But in some data set the glm.nb fail. Look: pop <- rnbinom(n=1000,size=1,mu=0.05) > glm.nb(pop~1,maxit=1000) Error in while ((it <- it + 1) < limit && abs(del) > eps) { : missing value where TRUE/FALSE needed look some pop charactetistics: > summary(pop) Min. 1st Qu. Median Mean 3rd Qu.
2011 Feb 05
3
wbinfo ok, but getent nothing
Hi there. Feel like I'm getting nowhere. Code: FreeBSD samba 3.6.6 ; connected to a Windows 2008 R2 AD wbinfo -u and wbinfo -g will properly show all the users and groups ; but for some reasons, I can get getent with winbind to show any users... I've must have tried over 100 different configuration, read all the tutorials I could find ; I never got it to work :( smb.conf: [global]
2005 Aug 16
1
predict nbinomial glm
Dear R-helpers, let us assume, that I have the following dataset: a <- rnbinom(200, 1, 0.5) b <- (1:200) c <- (30:229) d <- rep(c("q", "r", "s", "t"), rep(50,4)) data_frame <- data.frame(a,b,c,d) In a first step I run a glm.nb (full code is given at the end of this mail) and want to predict my response variable a. In a second step, I would
2006 Jan 18
0
IAX2 between two * server not working
Can any one help? Thanks. we have two * servers (Version 1.2.1) and one 1.09 server. Calls between these two 1.2.1 servers have odd behavior. But call from 1.09 to 1.21 server working fine in either situations. See below pls: Local server iax.conf [tosyd] username=mel type=peer secret=xxxx host=198.168.2.66 remote server iax.conf [mel] type=user secret=xxxx host=198.168.2.67
2001 Dec 17
1
behavior of r* and d* functions at boundaries (PR#1218)
(Sent this to r-help back in October, got no comments, forgot to re-submit it as a bug report.) There are a few inconsistencies, at least, in some of the functions that generate random deviates from particular distributions (I think they're bugs because they're inconvenient, but maybe someone can make an argument for the current behavior). If people think these are really bugs I can
1998 Oct 02
2
Serious cross-subnet browsing question
I've been having troubles getting cross subnet browsing working in existance with a WinNT domain master (hey, it's not my machine). Basically what is happening is that I am trying to setup a VPN (which shouldn't complicate things) that browsing will work across. The idea is this: There is an office in my local city that I'm connecting San Francisco to via VPN. The TCP/IP part is