Displaying 20 results from an estimated 4000 matches similar to: "sem package: start values"
2009 Jan 06
1
R SEM package
Does anyone know if the sem package in R can implement a stacked model
comparison, for example as in LISREL or AMOS?
Thanks,
Anthony
--
Anthony Steven Dick, Ph.D.
Post-Doctoral Fellow
Human Neuroscience Laboratory
Department of Neurology
The University of Chicago
5841 S. Maryland Ave. MC-2030
Chicago, IL 60637
Phone: (773)-834-7770
Email: adick at uchicago.edu
Web:
2010 May 25
1
SEM interaction
Hello all,
This is a general stats question--I realize it is an R help list, so
tell me to go away if it is inappropriate.
I have a 2 X 2 design, and I have specified four identical path models
(one for each level of each factor). I want to test for an interaction
at each path--essentially (A1 - A2) - (B1 - B2) != 0. I was thinking of
computing a contrast for each path of interest, such that
2009 Feb 02
1
sem package and AMOS
Hello-
I am using R to build my initial models, but need to use AMOS to compare
the models of two groups (adults vs. kids). The problem is I am getting
different results with R and AMOS for the initial models of the separate
groups (and the R results make more sense).
The parameter estimates (path coefficients and variances) from both
programs are nearly identical, but the model chi-squares
2009 Jan 14
3
remove columns containing all zeros (or other value)
Hello-
I would like to remove the columns of a matrix that contain all zeros.
For example, from
x<-matrix(c(1,5,3,2,1,4,0,0,0), ncol=3,nrow=3)
I would like to remove the third column. However, because this is in a
loop I need a way to first determine which columns are all zeros, and
only then remove them. I.e., I don't know which column of x contains all
zeros until after x is
2009 Jan 10
0
RMySQL CREATE TABLE error
Hi all-
I am stumped. The code in A. returns errors at lines 14 and 15 and fails
to load series1 and series2. However, in B., if temp1 and temp2 are
called again (which returns a "Table exists" error; see lines 14-17 in
B.) series1 and series2 load correctly. Any ideas? Also-I am open to any
suggestions to improve the code as I am a horrific programmer. Thanks
A.
1 >
2007 Mar 25
1
for loop help
Hello-
I have a script which steps through a series of subjects, and for the
subjects I remove outlying values. After removing these outliers, I
specify a cutoff, keeping only values over a certain value (e.g., 1.96).
I want to populate a matrix with a statistic of the values that make the
cutoff (for example, the mean). However, in some subjects, after
outliers and the cutoff are specified,
2011 Feb 24
1
parallel bootstrap linear model on multicore mac (re-post)
Hello all,
I am re-posting my previous question with a simpler, more transparent,
commented code.
I have been ramming my head against this problem, and I wondered if
anyone could lend a hand. I want to make parallel a bootstrap of a
linear mixed model on my 8-core mac. Below is the process that I want to
make parallel (namely, the boot.out<-boot(dat.res,boot.fun, R = nboot)
command).
2004 Jan 02
2
SEM help!!!
I have just started using the SEM package in R, so I'm not sure I'm doing
everything right, but I keep getting an error concerning startvalues and I
can't figure out how to fix it. Is anyone willing to read over my code
and help me out??? Please email me if you are willing to look at my code
and I will send it to you.
Thank you so much, and Happy New Year!
cathy
2004 May 12
1
Sem error - subscript out of bounds
What??s happening with this following code:
require(sem)
Celpe.Mod.RAM <- matrix(c(
# path parametro Inicio
"Produ????o -> T1", "gamma.11", NA,
"Produ????o -> T2", "gamma.12", NA,
2007 Apr 11
1
creating a path diagram in sem
Hello,
I finally run my measurement model in sem - successfully. Now, I am trying to print out the path diagram that is based on the results - but for some reason it's not working. Below is my script - but the problem is probably in my very last line:
# ANALYSIS OF ANXIETY, DEPRESSION, AND FEAR - LISREL P.31
library(sem)
# Creating the ANXIETY, DEPRESSION, AND FEAR intercorrelation matrix
2007 Apr 09
3
sem vs. LISREL: sem fails
I am new to R.
I just tried to recreate in R (using sem package and the identical input data) a solution for a simple measurment model I have found before in LISREL. LISREL had no problems and converged in just 3 iterations.
In sem, I got no solution, just the warning message:
"Could not compute QR decomposition of Hessian.
Optimization probably did not converge.
in: sem.default(ram =
2012 Aug 09
0
RMySQL dbConnect issues
Hello,
I have access to my database via command line and through workbench, and
have access on the grant tables:
mysql> SELECT host,user,password,select_priv,insert_priv FROM user;
+------+-------+-------------------------------------------+-------------+-------------+
| host | user | password | select_priv
| insert_priv |
2005 Mar 09
2
Structural equation models with R
Hello useRs,
I`m running structural equation models with R, but for one of my models the
below error message apears. I`m trying to change startvalues but without
success. The manual for sem package did not help me. Does anyone knows how to
change startvalues for iteration in sem package? Or it can be another problem
with the model?
Error in startvalues(S, ram, debug = debug, tol = start.tol)
2012 Mar 12
1
SEM eigen value error 0 X 0 matrix
Using R-studio, I am trying to run a structural equation model and I am
running into problems with testing my primary model. Once I specify
everything and try to run it I get this error:
Error in eigen(S, symmetric = TRUE, only.values = TRUE) : 0 x 0 matrix
And when I look at the object for my primary model in my workspace, which is
created after I specify it, it lists all my model components,
2011 Feb 23
0
parallel bootstrap linear model on multicore mac
People of R(th),
I have been ramming my head against this problem, and I wondered if
anyone could lend a hand. I want to parallelize a bootstrap of a linear
model on my 8-core mac. Below is the process that I want to parallelize
(namely, the m2.ph.rlm.boot<-boot(m2.ph,m2.ph.fun, R = nboot) command).
This is an extension of the bootstrapping linear models example in
Venables and Ripley to
2006 Jun 28
3
R project question (SEM)
Hi there,
I just saw your question on the help list and tough you could help me with
some start-up info....
I just downloaded the R project software to try running SEM analysis and I
also downloaded the SEM package. But it just sits there on the desktop and R
does not know where it is...I can¹t figure out how to organize the
files...When I type ?sem in R it says object sem not found...I can¹t
2011 May 11
1
Problem with constrained optimization with maxBFGS
Dear all,
I need to maximize the v:
v= D' W D
D is a column vector ( n , 1)
W is a given matrix (n, n)
subject to:
sum D= 1
(BTW, n is less than 300)
I´ve tried to use maxBFGS, as follows:
#####################################
objectiveFunction<-function(x)
{
return(t(D)%*%W%*%D)
}
Amat<-diag(nrow(D))
Amat<-rbind((rep(-1, nrow(D))), Amat)
bvec<-matrix( c(0), nrow(D)+1,
2006 Jun 28
0
data.frame error using sem package
Hi there,
I just saw your question on the help list and tough you could help me with
some start-up info....
I just downloaded the R project software to try running SEM analysis and I
also downloaded the SEM package. But it just sits there on the desktop and R
does not know where it is...I can¹t figure out how to organize the
files...When I type ?sem in R it says object sem not found...I can¹t
2011 May 16
0
SEM Model Not Converging
I'm trying to build a SEM using the sem package. I'll attach my model
specification below.
When I turn debug=TRUE, it seems as if I'm getting to convergence
because I get this message:
Successive iterates within tolerance.
Current iterate is probably solution.
However, at the end of the process I get this message:
Warning message:
In sem.default(ram = ram, S = S, N = N,
2009 Nov 25
4
Structural Equation Models(SEM)
Hi R-colleagues.
In the sem-package
i have a problem to introduce hidden variables.
As a simple example I take an ordinary factor analysis.
The program:
cmat=c(0.14855886, 0.05774635, 0.08003300, 0.04900990,
0.05774635, 0.18042029, 0.11213013, 0.03752475,
0.08003300, 0.11213013, 0.24646337, 0.03609901,
0.04900990, 0.03752475, 0.03609901, 0.31702970)