Displaying 20 results from an estimated 10000 matches similar to: ".NAME in .Fortran"
2012 May 23
1
Error message from optim
Dear list,
When running the script below, the optim function returns the message 'Error in function (par) : could not find function "fn"'. I've re-read the code a few times and just can't figure out why it's happening. Any help/suggestion is appreciated.
Regards,
Rubem
## R script
library(tweedie)
period<-factor(1:4)
herd<-factor(1:10)
2007 Aug 13
1
GML with tweedie: AIC=NA
Dear Catarina,
I prefer to leave the AIC value as NA for the tweedie GLM family
because it takes extra time to compute and is only occasionally
wanted. It's easy to compute the AIC yourself using the dtweedie()
function of the tweedie package.
Best wishes
Gordon
At 03:05 AM 14/08/2007, Catarina Miranda wrote:
>Dear Gordon;
>
>I have also sent this email to R help mailing list,
2010 Sep 30
1
AIC for tweedie glm
Dear R-users,
I'm trying to model some data using a tweedie GLM approach. My response
variable is the number of pupae that are the offspring of a subordinate wasp
on a wasp's nest. However, they're not count data- for each nest, I only
know the mean number of pupae per subordinate, which is continous. The data
also contain a high proportion of zeros.
I'm not very experienced at
2009 Aug 19
3
Sweave output from print.summary.glm is too wide
Hi all
I am preparing a document using Sweave; a really useful tool. But I am having a problem.
Consider this toy example Sweave file:
\documentclass{article}
\begin{document}
<<echo=TRUE,results=verbatim>>=
options(width=40) # Set width to 40 characters
hide <- capture.output(example(glm)) # Create an example of the problem, but hide the output
summary(glm.D93) #
2010 Aug 26
3
Using termplot() with transformations of x
Hi all
I was playing with termplot(), and came across what appears to be an inconsistency.
It would appreciate if someone could enlighten me:
> # First, generate some data:
> y <- rnorm(100)
> x <- runif(length(y),1,2)
> # Now find the log of x:
> logx <- log(x)
>
> # Now fit two models that are exactly the same, but specified differently:
> m1 <-
2009 Apr 24
2
Error building package: LaTeX error when creating PDF version
Hi all
I am trying to build an R package, which I have successfully done many times before, but have an error I cannot trace. I hope someone can help me.
Here's is some edited output (full output below if it is useful):
pdunn2 at PDunnUbuntu:~/DSdata$ R CMD build GLMsData
* checking for file 'GLMsData/DESCRIPTION' ... OK
* preparing 'GLMsData':
* checking DESCRIPTION
2008 Nov 11
1
Citing R in journal articles (or the failure to)
Hi all
I was reading a paper recently in which I was surprised to see an R package of mine obviously used, without acknowledgement. Indeed, R itself was used without any acknowledgment. So I contact the author about these issues, who said (in part):
Regarding the R packages, I used the "tweedie" and "statmod" for my
analyses as you pointed out.
The referee of this paper
2010 Dec 14
0
Sweave problem: lines repeated
Hi all
I'm having a problem when using Sweave. Here is a minimal example.
My input file (eg, test.Snw) looks like this:
<<TESTME,echo=FALSE, results=hide,fig=FALSE,keep.source=TRUE>>=
data(cars)
m1 <- lm( dist~speed, data=cars ); coef( m1 )
@
<<echo=TRUE,results=verbatim,fig=FALSE,keep.source=TRUE>>=
<<TESTME>>
@
<<TESTME2,echo=FALSE,
2014 May 29
1
mcmapply Core Usage
Hello,
I have a minimal example that shows a problem I'm having with parallel processing.
library(parallel)
mcmapply(function(x, y)
{
print("Running")
Sys.sleep(10)
}, as.list(1:10), as.list(10:1), mc.cores = 16, SIMPLIFY = FALSE)
I see "Running" printed once every ten seconds. I read the documentation for mcmapply, but I don't understand why it wouldn't
2008 Jan 25
2
Using bquote: question
Hi all
Observe:
x <- c(1,2)
y <- c(1,-1)
phi <- 1
p <- 2
par( mfrow=c(1,2))
plot(x , y, main=bquote( paste( p==.(p)," and ",phi==.(phi)) ) )
plot(y ~ x, main=bquote( paste( p==.(p)," and ",phi==.(phi)) ) )
par( mfrow=c(1,2))
On my system (details below), the first plot is correct (in my
understanding), and produces a title reading "p=2 and phi=1"
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.
2020 Jul 10
2
Strange behaviour of methods::slot() when returning a tibble
I have an S4 object class defined in a Bioconductor package which contains multiple slots, some of which are tibbles, whilst others are vectors. If I call
slot(object, name)
where 'name' is an slot that contains a vector, everything works as expected. However, when I call slot(object, name) where 'name' is an slot that contains a tibble I get the following warning:
Warning
2008 Apr 03
1
Lapack error in Design:::ols
Hi,
I'm trying to use Frank Harrell's Design:::ols function to do regression
of y (numeric) on the interaction of two factors (x1 and x2), but Lapack
throws an error:
> library(Design)
...
> load(url("http://www.csse.unimelb.edu.au/~gabraham/x"))
> ols(y ~ x1 * x2, data=x)
Error in chol2inv(fit$qr$qr) : 'size' cannot exceed nrow(x) = 20
> traceback()
2007 Jun 15
2
sma package, and MouseArray data set
Hi all
I have just downloaded the sma package from CRAN.
On installing on my linux machine, I get the message
> library(sma)
> data(MouseArray)
Warning message:
file 'MouseArray.RData' has magic number 'RDX1'
Use of save versions prior to 2 is deprecated
Hereafter, MouseArray is not found:
> MouseArray
Error: object "MouseArray" not found
We were
2007 Jan 25
3
Error in loadNamespace(name) (PR#9464)
Full_Name: Ross Darnell
Version: 2.4.1
OS: Linux
Submission from: (NULL) (130.102.133.33)
rdarnell at pc:~/Data$ ls -al .RData
-rwxrwxrwx 2 root root 13551 2006-12-06 08:58 .RData
rdarnell at pc:~/Data$ R
R version 2.4.1 (2006-12-18)
Copyright (C) 2006 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to
2013 Oct 04
2
Tab Separated File Reading Error
Hello,
I have a seemingly simple problem that a tab-delimited file can't be read in.
> annoTranscripts <- read.table("matched.txt", sep = '\t', stringsAsFactors = FALSE)
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 5933 did not have 12 elements
However, all lines do have 12 columns.
> lines <-
2009 Dec 17
2
segfault in glm.fit (PR#14154)
Bug summary:
glm() causes a segfault if the argument 'data'
is a data frame with more than 16384 rows.
Bug demonstration:
-------input ---------------
N <- 16400
df <- data.frame(x=runif(N, min=1,max=2),y=rpois(N, 2))
glm(y ~ x, family=poisson, data=df)
------ output ---------------
*** caught segfault ***
address (nil),
2006 Oct 26
1
Error: invalid multibyte string
I'm observing the following on different platforms:
> parse(text='"\\x7F"')
expression("\177")
> parse(text='"\\x80"')
Error: invalid multibyte string
...
> parse(text='"\\xFF"')
Error: invalid multibyte string
However,
cat("\x7F\n\x80\n...\xFF\n")
works. Using R --vanilla.
SYSTEMS GIVING THE ERROR:
>
2007 Mar 07
1
Sweave issue: quotes in verbatim-like output print incorrectly
Hi all
I love Sweave; use it all the time.
But I recently received a new computer, and ever since I
have had a problem I've never seen before.
For example, I place the following in my Snw file:
<<>>=
sms <-
read.table("http://www.sci.usq.edu.au/staff/dunn/Datasets/applications/popular/smsspeed.dat",
header=TRUE)
attach(sms)
sms.lm <- lm( Time ~ Age*Phone,
2009 Aug 26
3
tweedie and lmer
Hello all,
I have count data with about 36% of observations being zeros. I found
in some of the examples of the r-help mail archives that a tweedie
family of distributions could be used to fit a model with random
effects. Upon installing the tweedie package and attempting to fit the
following model:
lmer(SUS ~ 1 + (1|