OpenMx Help
kspoon
Joined: 06/17/2011
Confidence Intervals for Univariate Ordinal ACE Model with 2 Thresholds
I was wondering if there was a reason I can't seem to get confidence intervals for an ordinal ACE model with 2 thresholds.
I made sure to specify the mxCI for my standardized variance components call in my model and to put the "intervals=T" in my mxRun line. In my model fit $output$confidenceIntervals exists, but does not have any values.
Is this normal? If not, is there a way to create confidence intervals in the ordinal case? If it's just a silly code error, my code is below.
Any help would be appreciated!
univACEOrdModel <- mxModel("univACEOrd",
mxModel("ACE",
tbates
Joined: 07/31/2009
CIs: updating mxCI in a model
hi,
I have a model with existing CIs
fit1a
...
@intervals : 'top.a_std', 'top.c_std', and 'top.e_std'
...
I want to delete those, and run with just 1 request, so I tried
fit1b= mxModel(fit1a,mxCI(c("top.e_std[1,2]")))
but this seems to add the CIs onto the end of the list (rather than stamp on the old list)
- Read more about CIs: updating mxCI in a model
- 2 comments
- Log in or register to post comments
JoopDirksen
Joined: 06/28/2011
Expected covariance matrix is not positive-definite in data row ... at iteration ...
Hello,
I'm developing a model, but I run into a couple of problems. Since the OpenMx documentation did not give the answer I was looking for, I want to try it here. I'm having a hard time getting started with SEM and with OpenMx because there is no real good overview of SEM methodology in my opinion.
I'm trying to run the following code:
library(OpenMx)
model <- mxModel(
name="Model",
type="RAM",
manifestVars = c("A", "B", "C", "D", "E","F"),
latentVars = c("var1", "var2", "var3", "var4"),
mxPath(from="var1",to=c("A", "B", "C")),
bethe
Joined: 06/27/2011
Installation error (Ubuntu)
Hi,
Just tried to install OpenMx and encountered the following error:
> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Error in ret[i, ] <- c(pkgs[i], lib, desc) :
number of items to replace is not a multiple of replacement length
I have R version 2.13.0 on Ubuntu 10.10 (32 bits)
Thanks for any help in advance.
- Read more about Installation error (Ubuntu)
- 6 comments
- Log in or register to post comments
mdiaspar
Joined: 05/26/2011
BASIC Question about running ACE model
Hello!,
I have prepared a script to compute a factor model (path diagram for Phillips and Fulker model ) of phenotypes of parents and twin children given by Neale.
I get an error message indicating the following sentence:
+ mxAlgebra( expression= (A%*%(S%*%t(C)))+(C%*%(t(S)%*%t(A))), name="J" ),
# MZ Twin
+ mxAlgebra( expression= (A%&%G%)+(C%&%R%)+J+(N%*%t(N)), name="U1" ),
Error: unexpected '&' in:
"mxAlgebra( expression= (A%*%(S%*%t(C)))+(C%*%(t(S)%*%t(A))), name="J" ),
mxAlgebra( expression= (A%&%G%)+(C%&"
- Read more about BASIC Question about running ACE model
- 5 comments
- Log in or register to post comments
kkelley
Joined: 08/04/2009
Specifying the Correlation Among all Exogenous Variables
Hello,
I was wondering if there is an easy way to tell OpenMx to estimate all of the correlations among a set of exogenous variables, rather than specifying each of the correlations line-by-line in mxPath statements.
For example, suppose exogenous variables are:
IVs <- c("COREREL", "JOBPAY", "SEX_2")
I tried to automate a way to include the exogenous correlations for an arbitrary number of variables as:
These.Pairs <- combn(IVs, 2)
Here <- NA
for(i in 1:dim(These.Pairs)[2])
{
neale
Joined: 07/31/2009
Summer School Twin Data Analysis Workshop at King's College London
Summer School at King's College will teach SEM for genetically informative datasets June 20-24 2011
http://www.kcl.ac.uk/schools/summerschool/si/sgdp/course1/
a.ortega
Joined: 02/05/2011
OpenMx script for twin data to parallelize
Hi!
I have a script for ordinal twin data that takes about 5-6 hours to compute in my laptop. I was wondering whether it would be beneficial in this particular case to parallelize the work in order to reduce the computational time. Would it be possible to adapt this script to do the job?
I have been reading the OpenMx notes in the manual to implement the parallelization with the "Snowfall" package, but they seemed a bit odd to me (I have not too much experience in parallelizing with R). Any indication would be very appreciated. I attach here the script if somebody wish to have a look.
- Read more about OpenMx script for twin data to parallelize
- 6 comments
- Log in or register to post comments
berlinator
Joined: 06/09/2011
multicollinear predictors?
Hi all,
- Read more about multicollinear predictors?
- 3 comments
- Log in or register to post comments
a.ortega
Joined: 02/05/2011
Error: "length of 'dimnames' [1] not equal to array extent"
Hi!
I have prepared a script to compute a linear growth model to estimate genetic and environmental influences (ACE) in an intake and a slope with ordinal twin data: 4 variables, 3 categories (2 thresholds) in each of them. The sample is is divided in 6 groups (and so is the script), according to zygosity and sex: MZ men, DZ men, MZ women, DZ women, DZ man-woman and DZ woman-man.
I get an error message indicating the following sentence:
> Error: The algebra 'ACE.expThre' in model 'lgcOrdACE' generated the error message: length of 'dimnames' [1] not equal to array extent
Pagination
- Previous page
- Page 40
- Next page