Displaying 20 results from an estimated 10000 matches similar to: "non positive-definite G matrix in mixed models: bootstrap?"
2008 Jun 26
2
constructing arbitrary (positive definite) covariance matrix
Dear list,
I am trying to use the 'mvrnorm' function from the MASS package for
simulating multivariate Gaussian data with given covariance matrix.
The diagonal elements of my covariance matrix should be the same,
i.e., all variables have the same marginal variance. Also all
correlations between all pair of variables should be identical, but
could be any value in [-1,1]. The problem I am
2006 Oct 05
1
mixed models: correlation between fixed and random effects??
Hello,
I built 4 mixed models using different data sets and standardized variables
as predictors.
In all the models each of the fixed effects has an associated random effect
(same predictor).
What I find is that fixed effects with larger (absolute) standardized
parameter estimates have also a higher estimate of the related random
effect. In other words, the higher the average of the absolute
2006 Nov 03
2
Rank transformation and the linear mixed model
Hello,
I am looking for references about mixed models built on rank transformed
data.
Did anybody ever consider this topic?
Thank you,
Bruno
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bruno L. Giordano, Ph.D.
CIRMMT
Schulich School of Music, McGill University
555 Sherbrooke Street West
Montr?al, QC H3A 1E3
Canada
http://www.music.mcgill.ca/~bruno/
2002 Jan 31
2
Help with Bootstrap function.
Dear List
I am using R with mcgv package to model spatial variation in density estimates of dorcas gazelle in Sinai. I have 59 points of data and 4 explanatory variables(distance from mountain edge, camel presence, Latitude & Longitude). I want to test the model fir via bootstraping. I have used the jacknife bootstraping but it have the limitation of allowing only 58 trials. I tried to use the
2006 Jul 21
3
positive semi-definite matrix
I have a covariance matrix that is not positive semi-definite matrix and I
need it to be via some sort of adjustment. Is there any R routine or
package to help me do this?
Thanks, Roger
[[alternative HTML version deleted]]
2006 Jul 03
1
analogue of group option of SAS MIXED/random in R
Dear list,
I am trying to use lme to build the analogue of the following SAS MIXED
random specification:
random int+Variable1+Variable2 /subject = Subject group=Condition type=vc;
which gives a Condition-blocked heterogeneity in the random effects
variance-covariance matrix.
Needless to say, I have a hard time in specifying Condition-specific
heterogeneities in the variance-covariance
2012 Feb 03
1
GAM (mgcv) warning: matrix not positive definite
Dear list,
I fitted the same GAM model using directly the function gam(mgcv) ... then
as a parameter of another function that capture the warnings messages (see
below).
In the first case, there is no warning message printed, but in the last
one, the function find two warning messages stating "matrix not positive
definite"
So my question is: Do I have to worry about those warnings and
2009 Mar 11
2
non-positive definite matrix remedies?
Hi all,
For computational reasons, I need to estimate an 18x18 polychoric
correlation matrix two variables at a time (rather than trying to
estimate them all simultaneously using ML). The resulting polychoric
correlation matrix I am getting is non-positive definite, which is
problematic because I'm using this matrix later on as if it were a
legitimately estimated correlation matrix (in order
2010 Nov 15
1
Non-positive definite cross-covariance matrices
I am creating covariance matrices from sets of points, and I am having
frequent problems where I create matrices that are non-positive
definite. I've started using the corpcor package, which was
specifically designed to address these types of problems. It has
solved many of my problems, but I still have one left.
One of the matrices I need to calculate is a cross-covariance matrix.
In other
2010 Oct 21
4
how do I make a correlation matrix positive definite?
Hi,
If a matrix is not positive definite, make.positive.definite() function in corpcor library finds the nearest positive definite matrix by the method proposed by Higham (1988).
However, when I deal with correlation matrices whose diagonals have to be 1 by definition, how do I do it? The above-mentioned function seem to mess up the diagonal entries. [I haven't seen this complication, but
2003 Mar 22
2
How to check a matrix is positive definite?
Hey, all
Given a square matrix, how can I check if this matrix
is positive definite or not?
Thanks.
Fred
2009 Apr 01
2
Need Advice on Matrix Not Positive Semi-Definite with cholesky decomposition
Dear fellow R Users:
I am doing a Cholesky decomposition on a correlation matrix and get error message
the matrix is not semi-definite.
Does anyone know:
1- a work around to this issue?
2- Is there any approach to try and figure out what vector might be co-linear with another in thr Matrix?
3- any way to perturb the data to work around this?
Thanks for any suggestions.
2011 Jan 29
1
Positive Definite Matrix
Hello I am trying to determine wether a given matrix is symmetric and
positive matrix. The matrix has real valued elements.
I have been reading about the cholesky method and another method is to find
the eigenvalues. I cant understand how to implement either of the two. Can
someone point me to the right direction. I have used ?chol to see the help
but if the matrix is not positive definite it
2008 Oct 20
3
A question about positive definite matrix
I know, this is a forum about R. But I am so desperate of this problem (BTW,
anyone knows any good Statistics/Math forum to post question like this?):
A and B are both n x n positive definite matrix.
Denote A > B, if A - B is positive definite.
I know this is true: if A > B, then A^{-1} < B^{-1}. But how to prove this?
I tried to diagonalize A and B, but since they can have different
2011 Nov 18
1
Ensuring a matrix to be positive definite, case involving three matrices
Hi,
I would like to know what should I garantee about P and GGt in order to have
F = Z %*% P %*% t(Z) + GGt always as a positive definite matrix.
Being more precise:
I am trying to find minimum likelihood parameters by using the function
'optim' to find the lowest value generated by $LogLik from the function
'fkf' (http://127.0.0.1:27262/library/FKF/html/fkf.html).
The
2013 May 19
1
Generate positive definite matrix with constraints
Hi, I have a question for my simulation problem:
I would like to generate a positive (or semi def positive) covariance
matrix, non singular, in wich the spectral decomposition returns me the same
values for all dimensions but differs only in eigenvectors.
Ex.
sigma
[,1] [,2]
[1,] 5.05 4.95
[2,] 4.95 5.05
> eigen(sigma)
$values
[1] 10.0 0.1
$vectors
[,1]
2008 Jul 21
5
Coefficients of Logistic Regression from bootstrap - how to get them?
Hello all,
I am trying to optimize my logistic regression model by using bootstrap.
I was previously using SAS for this kind of tasks, but I am now
switching to R.
My data frame consists of 5 columns and has 109 rows. Each row is a
single record composed of the following values: Subject_name, numeric1,
numeric2, numeric3 and outcome (yes or no). All three numerics are used
to predict
2007 Feb 28
1
bootstrap
Hi,
I would like to evaluate the frequency of the variables within the best selected model by AIC among a set of 12 competing models (I fit them with GLM) with a bootstrap procedure to get unbiased results. So I would ike to do the ranking of the 12-model-set 10'000 times separately and calculate the frequency of variables of the 10'000 best ranked models. I wrote a script doing the model
2007 Apr 03
1
lmer, CHOLMOD warning: matrix not positive definite
Hi,
I am getting a warning message when I am fitting a generalized linear
mixed model (m1.2 below).
CHOLMOD warning: matrix not positive definite
Error in objective(.par, ...) : Cholmod error `matrix not positive
definite' at file:../Supernodal/t_cholmod_super_numeric.c, line 614
Any idea?
Thanks for your help,
Reza
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
2007 Jan 24
1
Matrix question: obtaining the square root of a positive definite matrix?
I want to compute B=A^{1/2} such that B*B=A.
For example
a=matrix(c(1,.2,.2,.2,1,.2,.2,.2,1),ncol=3)
so
> a
[,1] [,2] [,3]
[1,] 1.0 0.2 0.2
[2,] 0.2 1.0 0.2
[3,] 0.2 0.2 1.0
> a%*%a
[,1] [,2] [,3]
[1,] 1.08 0.44 0.44
[2,] 0.44 1.08 0.44
[3,] 0.44 0.44 1.08
> b=a%*%a
i have tried to use singular value decomposion
> c=svd(b)
> c$u%*%diag(sqrt(c$d))