Hello!
I am trying to impute missing data and output the results of the imputation.
My data set is called: MyData.
I have a bunch of variables all of which start with Q20_ - and some of them
have missing values.
Here is what I've been doing:
imputationmodel-mice( MyData[ c (grep(Q20_,
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
A strange problem with sem:
I downloaded the sem library and then, I specified my simple measurement model
(below). I highlighted it and ran it. It ran, but it did NOT tell me 22 lines
read. And nothing works after that - it looks like it runs, but it does not
produce anything...
Did I make a
Thanks a lot - I did not realize one had to hit return after running it (or
leave an extra empty line below it).
It works!
Dimitri
- Original Message
From: John Fox [EMAIL PROTECTED]
To: John Smith [EMAIL PROTECTED]
Cc: r-help@stat.math.ethz.ch
Sent: Wednesday, April 11, 2007 5:20:11 PM
From: John Fox [EMAIL PROTECTED]
To: John Smith [EMAIL PROTECTED]
Cc: r-help@stat.math.ethz.ch
Sent: Monday, April 9, 2007 9:46:03 PM
Subject: RE: [R] sem vs. LISREL: sem fails
Dear Dimitri,
You haven't done anything wrong: Your model is a straightforward
confirmatory factor analysis
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
]
Sent: Wednesday, July 16, 2003 9:50 PM
To: John Smith; [EMAIL PROTECTED]
Subject: RE: [R] duplicate row.names
I think you need to be a bit more specific for us to be able to help you. At
least provide a toy problem which replicates the error. Does this do what
you want?
dat1 - data.frame (x=rnorm
I am looping over many data files and reading in the data with F -
read.table(filename)to read in a 22000 by 15 matrix. Works fine on the
first matrix F, but I get the following error when the second file is read
into F:
Error in row.names-.data.frame(*tmp*, value = row.names) :