Displaying 20 results from an estimated 70 matches for "chol2inv".
Did you mean:
ch2inv
2000 Mar 21
2
chol2inv question
Hi there,
Please help me this out.
> m
[,1] [,2]
[1,] 1.1 1.0
[2,] 1.0 1.1
> chol2inv(m)
[,1] [,2]
[1,] 1.5094597 -0.7513148
[2,] -0.7513148 0.8264463
>
CT
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "...
2008 Aug 29
1
non user-friendly error for chol2inv functions
Hi,
In function chol2inv with the option LINPACK set to false (default), it
raises an error when the matrix is 1x1 matrix (i.e. just a real) saying
'a' must be a numeric matrix
This error is raised by the underlying C function (modLa_chol2inv in
function Lapack.c). Everything is normal, but I wonder if we could h...
2010 Nov 08
1
try (nls stops unexpectedly because of chol2inv error
...to control.
For each simulation, I need to model 7 nls functions. I loop over 7 to do
the nls using try
if try fails, I break out of that loop, and go to next simulation.
I get warnings on nls failures, but the simulation continues to run, except
when the internal call (internal to nls) of the chol2inv fails.
============================================
Error in chol2inv(object$m$Rmat()) :
element (2, 2) is zero, so the inverse cannot be computed
In addition: Warning messages:
1: In nls(myModel.nlm, fData, start = initialValues, control =
nls.control(warnOnly = TRUE), :
number of iterations...
2005 Apr 29
3
Error in La.chol2inv(x, size) : lapack routines cannot be loaded
...Intel(R) Xeon(TM) CPU 3.20GHz
R-version: R-2.1.0
I've started using a new Linux server, upgraded at the same time to
R-2.1.0 (see above) and have problems with some elementary analysis that
ran without a problem on my previous configuration.
anova.glm gives the following error:
Error in La.chol2inv(x, size) : lapack routines cannot be loaded
This was with the after the following configure
./configure --with-readline --prefix=/opt/R-2.1.0 --with-libpng
--with-jpeglib --with-pcre --without-x
The obvious thing to try next was:
./configure --with-readline --prefix=/opt/R-2.1.0 --with-libpng...
2004 Jan 12
1
question about how summary.lm works
Hi,
While exploring how summary.lm generated its output I came across a section
that left me puzzled.
at around line 57
R <- chol2inv(Qr$qr[p1, p1, drop = FALSE])
se <- sqrt(diag(R) * resvar)
I'm hoping somebody could explain the logic of these to steps or
alternatively point me in the direction of a text that will explain these
steps.
In particular I'm puzzled what is the relationship between QR factorizatio...
2008 Apr 03
1
Lapack error in Design:::ols
...ng 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()
6: .Call("La_chol2inv", x, size, PACKAGE = "base")
5: chol2inv(fit$qr$qr)
4: ols(y ~ x1 * x2, data = x)
3: eval.with.vis(expr, envir, enclos)
2: eval.with.vis(ei, envir)
1: source("t.R", echo = TR...
2009 Feb 10
3
summary of a list
...st[[i]])
}
But if I try to get the summary of all the objects of the resultList (there are 35 objects) it doesn't work...
I tried:
summaryList<-list()
> for (i in 1:length(resultList))
+ {
+ summaryList[[i]]<-summary(resultList[[i]])
+ }
And I got the following error message:
Error in chol2inv(object$m$Rmat()) : l'elemento (3, 3) ? zero, quindi l'inversa non pu? essere calcolata
Which translated should be: Error in chol2inv(object$m$Rmat()): the element (3, 3) is zero (NULL?), that's why the
inverse (inverse function?) can not be computed
Does somebody have an idea on how...
2012 Nov 22
2
lapack routines cannot be loaded [Help request]
...for an HTML browser interface to help.
Type 'q()' to quit R.
However, as soon as I try to use limma (or WGCNA... I haven't tried other packages yet) the following mistake pops up ( lapack routines cannot be loaded )
>library(limma)
> fit <- lmFit(Data.rma, design)
Error in chol2inv(fit$qr$qr, size = fit$qr$rank) :
lapack routines cannot be loaded
In addition: Warning message:
In chol2inv(fit$qr$qr, size = fit$qr$rank) :
unable to load shared object '/usr/lib64/R/modules//lapack.so':
/usr/lib64/R/modules//lapack.so: undefined symbol: dpstrf_
>
It is indepen...
2012 Oct 29
2
lapack routines cannot be loaded
...es.list
deb http://cran.us.r-project.org/bin/linux/ubuntu precise/
All was well, until I recently upgraded from 2.15.1 to 2.15.2 by running
sudo apt-get update
sudo apt-get upgrade
Now, when I try to do simple things, I get an error. e.g.
R> PP.test(rnorm(1000))
Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
lapack routines cannot be loaded
In addition: Warning message:
In chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
unable to load shared object '/usr/lib/R/modules//lapack.so':
/usr/lib/R/modules//lapack.so: undefined symbol: dpstrf_
I'm...
2004 Nov 11
1
OLS error
Hi,
I have 142 observations off different variables and I'm trying to do a
OLS. And I get this error. Any Ideas ?
> f <- ols(lnmigr3~popden78+income+modern+spareha+rain)
Error in La.chol2inv(x, size) : size cannot exceed nrow(x) = 1
D.
-----------------------------------------
Stay ahead of the information curve.
Receive GIS news and jobs on your desktop daily.
Subscribe today to the GIS CafeNews newsletter.
[ http://www10.giscafe.com/nl/newsletter_subscribe.php ]
It's inform...
2008 May 23
3
nls diagnostics?
Hi, All:
What tools exist for diagnosing singular gradient problems with
'nls'? Consider the following toy example:
DF1 <- data.frame(y=1:9, one=rep(1,9))
nlsToyProblem <- nls(y~(a+2*b)*one, DF1, start=list(a=1, b=1),
control=nls.control(warnOnly=TRUE))
Error in nlsModel(formula, mf, start, wts) :
singular gradient matrix at initial
2011 Jul 29
2
'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing
...t works perfectly. However, this test is
not adapted because regression residuals are not independant.
That is why *I used 'breackpoints', which works for depedant errors* (Bai,
1997).
Syntax:
struc.test <- breakpoints(y~x1+x2+x3+x3+x4, data=D)
*I get an error message:*
Erreur dans chol2inv(qr.R(fm$qr)) :
l'élément (5, 5) est nul, donc l'inverse ne peut être calculé
(sorry for the french version, I don't know how to get the message
english translation in R).
My first assumption was this has *something to do with the dummy variable,
so I skipped it*:
struc.test <- br...
2004 Oct 12
3
problem with lapack.so under Debian Sid
Dear list,
I am sorry to bother you with this.
I just upgraded yesterday to R 2.0.0 (using apt-get under Debian Sid), and
now have problems running e.g., summary(lm(...))
the lm is calculated, but the summary statement gives me the following
error:
Error in La.chol2inv(x, size) : lapack routines cannot be loaded
In addition: Warning message:
unable to load shared library "/usr/lob/R/modules/lapack.so":
/usr/lib/Pentium4_SSE2_512KB/liblapack.so.3: undefined symbol: ieeeck_
I searched through the archives, but unfortunately I am just not
LINUX-knowle...
2012 Nov 23
2
R lapack routines cannot be loaded
...routines cannot be loaded
Adem?s: Mensajes de aviso perdidos
In eigen(St, symmetric = TRUE) :
unable to load shared object '/usr/lib/R/modules//lapack.so':
/usr/lib/R/modules//lapack.so: undefined symbol: dpstrf_
model <- with(chlaR,lm(ClorMAX ~ DegDay_NM))
summary(model)
Error en chol2inv(Qr$qr[p1, p1, drop = FALSE]) :
lapack routines cannot be loaded
The version information is:
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 15.2
year 2012
month 10
day 26
svn rev 61015
language R
I am using Ubuntu 12.04.1 LTS
Any ideas?
2010 Jan 07
1
faster GLS code
Dear helpers,
I wrote a code which estimates a multi-equation model with generalized
least squares (GLS). I can use GLS because I know the covariance matrix of
the residuals a priori. However, it is a bit slow and I wonder if anybody
would be able to point out a way to make it faster (it is part of a bigger
code and needs to run several times).
Any suggestion would be greatly appreciated.
Carlo
2011 Oct 12
2
Nonlinear regression aborting due to error
...ls 10-80, nls converges successfully and the fit tracks the fit from a smoother (Supersmoother). However, if I attempt to estimate GAMMA using:
START <- list(EMAX=INITEMAX, EFFECT=INITEFFECT, C50=INITC50, GAMMA=INITGAMMA)
GAMMA increases rapidly to > 500 and nls terminates with:
Error in chol2inv(object$m$Rmat()) :
element (4, 4) is zero, so the inverse cannot be computed
In addition: Warning message:
In nls(FORMULA, start = START, control = CONTROL, trace = T) :
singular gradient
I also tried fixing GAMMA to > 1000 and I get a similar error message:
Error in chol2inv(object$m...
2005 Oct 31
2
nls() fit to Kahnemann/ Tversky function
...amma <- rep(0.5, 10)
nls.dataframe <- data.frame(p.kum,felt.prob.kum, gamma)
nls.kurve <- nls( formula = felt.prob.kum ~
p.kum^gamma/(p.kum^gamma+(1-p.kum)^gamma)^(1/gamma), data=nls.dataframe,
start=c(gamma=gamma), algorithm="plinear" )
summary(nls.kurve)
gives: Error in La.chol2inv(x, size) : 'size' cannot exceed nrow(x) = 10
If I go with the Gauss-Newton algorithm I get an singular gradient
matrix error, so I tried the Golub-Pereyra algorithm for partially
linear least-squares.
It also seems the nls model tries to find ten different gammas, but
I want...
2010 Sep 23
1
Newey West and Singular Matrix + library(sandwich)
thank you, achim. I will try chol2inv.
sandwich is a very nice package, but let me make some short
suggestions. I am not a good econometrician, so I do not know what
prewhitening is, and the vignette did not explain it. "?coeftest" did
not work after I loaded the library. automatic bandwidth selection
can be a good thing,...
2005 Mar 03
2
regression on a matrix
...omputations in R. The code
follows:
#regression function
#Linear regression code
qreg <- function(y,x) {
X=cbind(1,x)
m<-lm.fit(y=y,x=X)
p<-m$rank
r <- m$residuals
n <- length(r)
rss <- sum(r^2)
resvar <- rss/(n - p)
Qr <- m$qr
p1 <- 1:p
R <- chol2inv(Qr$qr[p1, p1, drop = FALSE])
se <- sqrt(diag(R) * resvar)
b <- m$coefficients
return(c(b[2],se[2]))
}
#simulate
a <- c(1,.63,.63,1)
a <- matrix(a,2,2)
c <- chol(a)
C <- 0.7
theta <- 0.8
sims <- 1000
n<-20
u <- rnorm(n,0,sqrt(1-C))
w <- rgamma(n,C/theta,1/th...
2004 Apr 16
1
Problem with breakpoints (strucchange)
Hola!
I am using package strucchange, and encounters the following:
> bp <- breakpoints(diesel90 ~ regress -1, h=NULL)
Error in La.chol2inv(x, size) : element (14, 14) is zero, so the
inverse cannot be computed
The obvious problems have been checked, that is, the model matrix is
of full rank. What can be causing this?
I can send some data if that can be of help.
Kjetil Halvorsen