Displaying 20 results from an estimated 4000 matches similar to: "solve computationally singular"
2005 Aug 08
2
computationally singular
Hi,
I have a dataset which has around 138 variables and 30,000 cases. I am
trying to calculate a mahalanobis distance matrix for them and my
procedure is like this:
Suppose my data is stored in mymatrix
> S<-cov(mymatrix) # this is fine
> D<-sapply(1:nrow(mymatrix), function(i) mahalanobis(mymatrix, mymatrix[i,], S))
Error in solve.default(cov, ...) : system is computationally
2011 Mar 16
2
Singularity problem
Dear R,
If I have remembered correctly, a square matrix is singular if and only if
its determinant is zero. I am a bit confused by the following code error.
Can someone give me a hint?
> a <- matrix(c(1e20,1e2,1e3,1e3),2)
> det(a)
[1] 1e+23
> solve(a)
Error in solve.default(a) :
system is computationally singular: reciprocal condition number = 1e-17
Thanks in advance!
Feng
--
2012 Oct 25
5
system is computationally singular: reciprocal condition number
Hi folks,
I know, this is a fairly common question and I am really disappointed that I
could not find a solution.
I am trying to calculate Mahanalobis distances in a data frame, where I have
several hundreds groups and several hundreds of variables.
Whatever I do, however I subset it I get the "system is computationally
singular: reciprocal condition number" error.
I know what it means
2009 Nov 18
2
Error "system is computationally singular" by using function dmvnorm
Dear R users,
i try to use function dmvnorm(x, mean, sigma, log=FALSE)
from R package mvtnorm to calculate the probability of x
under the multivariate normal distribution with mean equal
to mean and covariance matrix sigma.
I become the following
Error in solve.default(cov, ...) :
system is computationally singular: reciprocal condition
number = 1.81093e-19
What could be the reason of it?
2009 Jun 25
2
Error: system is computationally singular: reciprocal condition number
I get this error while computing partial correlation.
*Error in solve.default(Szz) :
system is computationally singular: reciprocal condition number =
4.90109e-18*
Why is it?Can anyone give me some idea ,how do i get rid it it?
This is the function i use for calculating partial correlation.
pcor.mat <- function(x,y,z,method="p",na.rm=T){
x <- c(x)
y <- c(y)
2009 Jul 20
2
mahalanobis distance
http://www.nabble.com/file/p24569511/mahalanobis.txt mahalanobis.txt
http://www.nabble.com/file/p24569511/concentrations.txt concentrations.txt
Dear Forum members,
I have a problem calculating mahalanobis distances. My data file
mahalanobis.txt and categories file concentrations.txt are attached. I do
the following steps:
x <- as.matrix(read.table("mahalanobis.txt", header=TRUE))
2004 Dec 09
1
System is computationally singular?
Hi all,
I was using the Newton-Raphson method to estimate paremeters in the model developed by my supervisor. However, when I interatively computed theta(t+1)=theta(t) - solve(H)*s (where the Hessian matrix and score vector were explicitely derived), I got the error message: Error in solve.default(H) : system is computationally singular: reciprocal condition number = 1.70568e-032. Assume my score
2009 Jun 28
1
ERROR: system is computationally singular: reciprocal condition number = 4.90109e-18
Hi All,
This is my R-version information:---
> version
_
platform i486-pc-linux-gnu
arch i486
os linux-gnu
system i486, linux-gnu
status
major 2
minor 7.1
year 2008
month 06
day 23
svn rev 45970
language R
version.string R version 2.7.1 (2008-06-23)
While calculating partial
2007 Jun 01
1
Determinant function (PR#9715)
Full_Name: Krzysztof Podgorski
Version: R version 2.4.1 (2006-12-18)
OS: Windows XP
Submission from: (NULL) (130.235.3.79)
The function ''det'' works improperly for a singular matrix and returns a
non-zero value even if ''solve'' reports singularity. The matrix is very simple
as shown below.
A <- diag(rep(c(64,8), c(8,8)))
A[9:16,1] <- 8
A[1,9:16] <- 8
2013 Jan 13
1
R error: system is computationally singular when building GMM model
Dear,
I built the generalized method of moments model to estimate the sales rank
in the bookstore using plm package in R.
The equation is:
data1.gmm <- pgmm(dynformula(lnsales_rank ~ ln_price + avg_ham_rate +
avg_spam_rate + num_of_ham+ num_of_spam + ship_code2 +ship_code3
+ship_code4+ ship_code5+ ship_code6 + ship_ code7, lag = list(0, 0, 0,
0,0,0,0,0,0,0,0,0), log =FALSE), data=data,
2006 Jan 10
1
glmmPQL / "system is computationally singular"
Hi,
I'm having trouble with glmmPQL from the MASS package.
I'm trying to fit a model with a binary response variable, two fixed
and two random variables (nested), with a sample of about 200,000
data points.
Unfortunately, I'm getting an error message that is difficult to
understand without knowing the internals of the glmmPQL function.
> model <- glmmPQL(primed ~
2008 Sep 12
1
Error in solve.default(Hessian) : system is computationally singular
Hello everyone,
I'm trying to estimate the parameters of the returns series attached using the GARCH code below, but I get the following error message:
Error in solve.default(Hessian) :
system is computationally singular: reciprocal condition number = 0
Error in diag(solve(Hessian)) :
error in evaluating the argument 'x' in selecting a method for function 'diag'
Can
2008 Oct 08
1
Error in spdep: system is computationally singular
Hi all,
I am trying to run an autologistic model using the function errorsarlm from spdep package.
**I built an XY matrix extracting the two colums from matriz**
coords1<-matriz[matriz$casos1==1, c(4,5)]
coords1<-as.matrix(coords1)
**I identify neighbours of region points**
nb20<-dnearneigh(coords1,0,20,longlat=TRUE)
** I build a neighbours list with spatial weights**
2009 May 01
1
computationally singular and lack of variance parameters in SEM
Hi all,
I am trying to set up a simple path analysis in the SEM package, but I am
having some trouble. I keep getting the following error message or
something similar with my model, and I'm not sure what I'm doing wrong:
Error in solve.default(C) :
system is computationally singular: reciprocal condition number =
2.2449e-20
In addition: Warning message:
In sem.default(ram = ram, S = S,
2009 Jun 25
2
crr - computationally singular
Dear R-help,
I'm very sorry to ask 2 questions in a week. I am using the package
'crr' and it does exactly what I need it to when I use the dataset a.
However, when I use dataset b I get the following error message:
Error in drop(.Call("La_dgesv", a, as.matrix(b), tol, PACKAGE = "base")) :
system is computationally singular: reciprocal condition number =
2012 Dec 11
2
Catching errors from solve() with near-singular matrices
Dear all,
The background is that I'm trying to fix this bug in the geometry
package:
https://r-forge.r-project.org/tracker/index.php?func=detail&aid=1993&group_id=1149&atid=4552
Boiled down, the problem is that there exists at least one matrix X for
which det(X) != 0 and for which solve(X) fails giving the error "system
is computationally singular: reciprocal condition
2006 Sep 06
1
singular factor analysis
Are there any functions available to do a factor analysis with
fewer observations than variables? As long as you have more than 3
observations, my computations suggest you have enough data to estimate a
factor analysis covariance matrix, even though the sample covariance
matrix is singular. I tried the naive thing and got an error:
> set.seed(1)
> X <- array(rnorm(50), dim=c(5,
2011 Sep 02
5
Hessian Matrix Issue
Dear All,
I am running a simulation to obtain coverage probability of Wald type
confidence intervals for my parameter d in a function of two parameters
(mu,d).
I am optimizing it using "optim" method "L-BFGS-B" to obtain MLE. As, I
want to invert the Hessian matrix to get Standard errors of the two
parameter estimates. However, my Hessian matrix at times becomes
2009 Mar 08
1
singular matrices in plm::pgmm()
Hi list,
has anyone succeeded in using pgmm() on any dataset besides
Arellano/Bond's EmplUK, as shown in the vignette?
Whatever I try, I eventually get a runtime error because of a singular
matrix at various points in pgmm.diff() (which gets called by pgmm()).
For example, when estimating a "dynamic" version of the Grunfeld data:
data(Grunfeld, package="Ecdat")
grun
2011 May 13
4
[LLVMdev] Fail when building llvm2.9 using MinGW64
I was building llvm2.9 using MinGW64 on windows, msys was 32 bit so I
specified --host option for a cross compiling. Following are my configure
options:
../llvm2.9/configure --prefix=/home/AutoESL/llvm-obj
--host=x86_64-w64-mingw32
--disable-multilib
The error:
make[1]: Entering directory `/home/AutoESL/llvm-obj/lib/VMCore'
make[1]: ***