Displaying 20 results from an estimated 3000 matches similar to: "Log Cholesky parametrization in lme"
2006 Mar 07
1
lme and gls : accessing values from correlation structure and variance functions
Dear R-users
I am relatively new to R, i hope my many novice questions are welcome.
I have problems accessing some objects (specifically the random effects, correlation structure and variance function) from an object of class gls and lme.
I used the following models:
yah <- gls (outcome~ -1 + as.factor(Trial):as.factor(endpoint)+
2006 May 16
2
query: lme
Dear R Users
I have difficulties accessing the variance components for an lme fit when the variance covariance matrix of the random effects is not positive definite.
Can anyone inform me on how to get by this ?
Thanks in advance
Pryseley
---------------------------------
[[alternative HTML version deleted]]
2006 Mar 03
1
Help with lme and correlated residuals
Dear R - Users
I have some problems fitting a linear mixed effects model using the lme function (nlme library). A sample data is as shown at the bottom of this mail. I fit my linear mixed model
using the following R code:
bmr <-lme (outcome~ -1 + as.factor(endpoint)+ as.factor(endpoint):trt, data=datt,
random=~-1 + as.factor(endpoint) + as.factor(endpoint):trt|as.factor(Trial),
2006 Jun 01
2
Help: lme
Good day R-Users,
I have a problem accessing some values in the output from the summary of an lme fit.
The structure of my data is as shown below (I have attached a copy of the full data).
id trials endp Z.sas ST
1 1 -1 -1 42.42884
1 1 1 -1 48.12007
2 1 -1 -1 43.42878
2 1 1 -1
2006 Jun 28
3
lme convergence
Dear R-Users,
Is it possible to get the covariance matrix from an lme model that did not converge ?
I am doing a simulation which entails fitting linear mixed models, using a "for loop".
Within each loop, i generate a new data set and analyze it using a mixed model. The loop stops When the "lme function" does not converge for a simulated dataset. I want to
2006 Jan 30
5
Help with R: functions
Hello R-users
I am new to R and trying to write some functions. I have problems writing functions that takes a data set as an arguement and uses variables in the data. I illustrate my problem with a small example below:
sample data #------------------
visual24<-rnorm(30,3,5)
visual52<-rt(30,7)
dats<- data.frame(cbind(visual24,visual52))
remove(visual24, visual52)
2006 May 30
1
Query: lme output
Dear R-Users
I have a problem accessing some values in the output from the summary of an lme fit.
I fit the model below:
ggg <- lme (ST~ -1 + as.factor(endp):Z.sas + as.factor(endp), data=dat4a,
random=~-1 + as.factor(endp) + as.factor(endp):Z.sas|as.factor(trials),
correlation = corSymm(form=~1|as.factor(trials)/as.factor(id)), weights=varIdent(form=~1|endp))
hh
2006 Mar 07
1
Three level linear mixed models
Hello R-users
Is it possible to fit a three level linear mixed effect model in R?
If anyone has an idea or sample code, i will appreciate it very much if i can receive it.
I am reading the book by Pinheiro and Bates but have not come across that yet!
Kind regards
Pryseley
---------------------------------
[[alternative HTML version deleted]]
2006 May 08
1
Pairewise Likelihood
Dear R-users
Can anyone inform me of a library or more specifically functions that can maximise (or calculate) a Pairwsie likelihood from a data.
Better still, i would like to know if there is a function (library) that fits regression models based on pairwise likelihoods.
Thanks
Pryseley
---------------------------------
[[alternative HTML version deleted]]
2006 Sep 28
1
Plackett-Dale Model in R
Dear R users,
Can someone inform me about a library/function in R that fits a Plackett-Dale model ?
Thanks in advance
Pryseley
---------------------------------
[[alternative HTML version deleted]]
2002 Dec 17
1
lme invocation
Hi Folks,
I'm trying to understand the model specification formalities
for 'lme', and the documentation is leaving me a bit confused.
Specifically, using the example dataset 'Orthodont' in the
'nlme' package, first I use the invocation given in the example
shown by "?lme":
> fm1 <- lme(distance ~ age, data = Orthodont) # random is ~ age
Despite the
2006 Jan 18
2
Help with mixed effects models
Dear R-users
I have problems using lme
The model i want to fit can be viewed as a two-level bivariate model
Two-level bivariate: bivariate (S coded as -1,T coded as 1) endpoint within trial
OR
It can equivalently be considered as a three-level model.Three-level: endpoint within patient, patient within trial.
My code tries to model the levels through a RANDOM statement and a
2006 Feb 01
1
Help with functions
Dear R-users
I intend to create a function which calls some smaller other functions in return. Some of these smaller functions all call some functions. I do not know a good way to do this. I tried using the source() function to include the smaller functions within the main functions before they are called. This does not work, or maybe i am not doing the right thing.
For example:
the
2009 Mar 10
5
Cholesky Decomposition in R
Hi everyone:
I try to use r to do the Cholesky Decomposition,which is A=LDL',so far I
only found how to decomposite A in to LL' by using chol(A),the function
Cholesky(A) doesnt work,any one know other command to decomposte A in to
LDL'
My r code is:
library(Matrix)
A=matrix(c(1,1,1,1,5,5,1,5,14),nrow=3)
> chol(A)
[,1] [,2] [,3]
[1,] 1 1 1
[2,] 0 2 2
2007 Jun 01
2
how to specify starting values in varIdent() of lme()
I was reading the help but just did not get how to specify starting values for
varIdent() of the lme() function, although I managed to do it for corSymm().
Do I specify the values just as they are printed out in an output, like c(1,
1.3473, 1.0195). Or do I need to take the residual and multiply it with these
like c(0.2235, 0.2235*1.3473, 0.2235*1.0195)
or any other form that I dont know of?
2012 Oct 26
2
Interpreting and visualising lme results
Dear R users,
I have used the following function (in blue) aiming to find the linear regression between MOE and XLA and nesting my data by Species. I have obtained the following results (in green).
model4<-lme(MOE~XLA, random = ~ XLA|Species, method="ML")summary(model4)
Linear mixed-effects model fit by maximum likelihood Data: NULL AIC BIC logLik -1.040187 8.78533
2011 Dec 29
1
Cholesky update/downdate
Dear R-devel members,
I am looking for a fast Cholesky update/downdate. The matrix A being
symmetric positive definite (n, n) and factorized as
A = L %*% t(L), the goal is to factor the new matrix A +- C %*% t(C)
where C is (n, r). For instance, C is 1-column when adding/removing an
observation in a linear regression. Of special interest is the case
where A is sparse.
Looking at the
2005 Jan 21
1
Cholesky Decomposition
Can we do Cholesky Decompositon in R for any matrix
---------------------------------
[[alternative HTML version deleted]]
2007 Apr 24
1
Matrix: how to re-use the symbolic Cholesky factorization?
I have been playing around with sparse matrices in the Matrix
package, in particularly with the Cholesky factorization of matrices
of class dsCMatrix. And BTW, what a fantastic package.
My problem is that I have to carry out repeated Cholesky
factorization of a spares symmetric matrices, say Q_1, Q_2, ...,Q_n,
where the Q's have the same non-zero pattern. I know in this case one
does
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.