Displaying 20 results from an estimated 1000 matches similar to: "Lapack error in Design:::ols"
2009 Mar 10
1
S4 generic masking S3 generic when using namespace
Hi,
I have two example packages, test1 and test2, where the only code in
them is:
setGeneric("predict", function(object, ...) standardGeneric("predict"))
(get them from http://www.cs.mu.oz.au/~gabraham/test1.tar and
http://www.cs.mu.oz.au/~gabraham/test2.tar)
The difference between them is that first does not have a namespace, and
loads fine. The second has a namespace
2009 Jun 24
1
Rscript segfaults with lazy loading
Hi,
I have an RData file containing a GeneSetCollection object
(Bioconductor), http://www.cs.mu.oz.au/~gabraham/c2.RData. I think it
uses lazy loading because packages are only loaded when I access the
object (see below) in the R console.
When I try the same with Rscript, it segfaults. This happens on 2.9.0
both on Linux and Mac:
Rscript -e 'load("c2.RData"); c2[1]'
***
2008 Apr 17
1
Error in Design package: dataset not found for options(datadist)
Hi,
Design isn't strictly an R base package, but maybe someone can explain
the following.
When lrm is called within a function, it can't find the dataset dd:
> library(Design)
> age <- rnorm(30, 50, 10)
> cholesterol <- rnorm(30, 200, 25)
> ch <- cut2(cholesterol, g=5, levels.mean=TRUE)
> fit <- function(ch, age)
+ {
+ d <- data.frame(ch, age)
+
2008 Oct 18
0
Error in solvet: apparently singular matrix
Hi,
Again I'm doing logistic regression using lrm from Harrell's Design
package, but on wide matrices (28 observations, 1891 variables) so L2
penalisation is used. I get the following error, although I've tried
different penalties and different tolerances. The X matrix is scaled and
centred.
> library(Design)
>
2008 May 16
1
Dimensions of svd V matrix
Hi,
I'm trying to do PCA on a n by p wide matrix (n < p), and I'd like to
get more principal components than there are rows. However, svd() only
returns a V matrix of with n columns (instead of p) unless the argument
nv=p is set (prcomp calls svd without setting it). Moreover, the
eigenvalues returned are always min(n, p) instead of p, even if nv is set:
> x <-
2009 Nov 27
2
Symmetric Matrix classes
Hi,
I'd like to store large covariance matrices using Matrix classes.
dsyMatrix seems like the right one, but I want to specify just the
upper/lower triangle and diagonal and not have to instantiate a huge
n^2 vector just for the sake of having half of it ignored:
Dumb example:
M <- new("dsyMatrix", uplo="U", x=rnorm(1e4), Dim=as.integer(c(100, 100)))
diag(M) <- 1
2008 May 18
1
predict.prcomp: 'newdata' does not have the correct number of columns
Hi,
I'm doing PCA on wide matrices and I don't understand why calling
predict.prcomp on it throws an error:
> x1 <- matrix(rnorm(100), 5, 20)
> x2 <- matrix(rnorm(100), 5, 20)
> p <- prcomp(x1)
> predict(p, x2)
Error in predict.prcomp(p, x2) :
'newdata' does not have the correct number of columns
> dim(x2)
[1] 5 20
> dim(p$rotation)
[1] 20 5
2008 Aug 12
1
Conflict between octave3.0-headers and r-base-dev
Hi,
I'm using Ubuntu Hardy i386, and the R 2.7.1 Ubuntu packages from CRAN.
The CRAN r-base-dev package depends on refblas3-dev or atlas3-base-dev,
but octave3.0-headers depends on libblas-dev. The two blas packages seem
to conflict, so r-base-dev and octave3.0-headers can't be installed
together.
Is this a known issue?
Thanks,
Gad
$ sudo apt-get install octave3.0-headers
Reading
2010 May 26
2
cran2deb Packages.bz2 Hash Sum mismatch
Hi,
I'm using Ubuntu 9.10 amd64 with cran2deb packages (I know it's meant
for Debian, it's worked fine for me for many months).
Recently apt-get update has to started to complain:
...
Hit http://debian.cran.r-project.org testing/ Release
Get:1 http://debian.cran.r-project.org testing/ Packages [515kB]
Fetched 1B in 3s (0B/s)
W: Failed to fetch
2009 Jul 16
1
Handling masked methods
Hi,
Say I have two packages, test1 and test2, that both define the generic
method train (identical definition), and each has a specific train
method for a different S4 object (foo and bar, resp.)
I want to be able to call train(foo, x, y) and train(bar, x, y), which
doesn't work since test2 masks test1, as seen below.
The two solutions I can think of are to a) prefix train,
2008 Oct 09
2
Singular information matrix in lrm.fit
Hi R helpers,
I'm fitting large number of single factor logistic regression models
as a way to immediatly discard factor which are insignificant.
Everything works fine expect that for some factors I get error message
"Singular information matrix in lrm.fit" which breaks whole execution
loop... how to make LRM not to throw this error and simply skip
factors with singularity
2008 Apr 20
1
Scaling in predict.prcomp
Hi,
Say x.train is a matrix of covariates that I want to do PCA on, so I can
do regression on its principal components, and x.test is a test set of
the same covariates on which I want to evaluate the regression fit. I
would like the covariates to be centred and scaled:
p <- prcomp(x.train, center=TRUE, scale=TRUE)
x.train.pc <- predict(p)
Now I want to get the PCs from the test set.
2007 Mar 20
1
truehist bug?
Hi,
Is this a bug in truehist()?
> library(MASS)
> x <- rep(1, 10)
> truehist(x)
Error in pretty(data, nbins) : invalid 'n' value
Thanks,
Gad
> R.version
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
status
major 2
minor 4.1
year 2006
month 12
day 18
svn
2007 Mar 20
1
truehist bug?
Hi,
Is this a bug in truehist()?
> library(MASS)
> x <- rep(1, 10)
> truehist(x)
Error in pretty(data, nbins) : invalid 'n' value
Thanks,
Gad
> R.version
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
status
major 2
minor 4.1
year 2006
month 12
day 18
svn
2008 Dec 11
1
help with predict in stats4
Hi,
We're using stats4 for a logistic regression. The code is
chdreg.logit2 <- glm(chd ~ age + sex, family = binomial)
summary(chdreg.logit2)
oddsratios <- coef(chdreg.logit2)
exp(oddsratios)
# Calculate model predicted values
pred <- predict(chdreg.logit2,type="response")
The glm part runs fine, and up to now so has the predict function.
However, now we're
2009 Jan 27
1
Using R in a web application
Hi,
I want to use R to do user-submitted jobs in a (java-based) webapp.
Specifically, I want
* users to upload R scripts
* run the R job on user data
* save the results to database
I'm concerned about sandbox issues.
* Is it possible to disable file read/write capability?
* Can I prevent the user from loading packages (e.g. the database package).
* Can I have users work on separate data
2009 Feb 08
1
Hessian?
I am new to 'R' and also new to the concept of a 'Hessian' with non-linear optimization. I would like to avoid going through all of the reference articles given with ?optim as access to a library is not handy. Would someone be able to elighten me on what is in the Hessian matrix if 'hessian = TRUE' with optim? The documentation indicates that this is a numerically
2008 Dec 09
1
ARMA
Hi!
Is there any package or function on R to ARMA models (Box & Jenkins, without
sazonality and trend) with resources to automatic identification for p and q
?
Regards,
Raphael Saldanha
Brazil
[[alternative HTML version deleted]]
2009 Jun 17
1
Predict Fanny Membership
Hello List,
My question is an elementary one. I have run a fuzzy kmeans cluster using
FANNY to group freshwater fish assemblages. I then went in the field to
validate that classification and have retrieved new assemblage data for a
new suite of streams. Therefore I would like to use Predict to determine how
well the original clustering fits the new data. However I have not figured
out a
2009 Jan 20
2
Confidence intervals in ccf()
Hi,
I have been running the ccf() function to find cross-correlations of time
series across various lags. When I give the option of plot=TRUE, I get a
plot that gives me 95% confidence interval cut-offs (based on sample
covariances) for my cross-correlations at each lag. This gives me a sense of
whether my cross-correlations are statistically significant or not.
However, I am unable to get R to