[R] import from LISREL output of parameter estimates

Felix Flory felix_flory at yahoo.de
Fri Mar 10 00:43:34 CET 2006


I am using R and LISREL for simulation studies. R generates the data 
that is analyzed with LISREL.
In LISREL I use "PV" in the LISREL output statement to request estimated 
variances. LISREL writes these in a file that looks like this:

     1  0  0
 0.100331D+01 0.144845D+01 0.141009D+01 0.214423D+01 0.214129D+01 
0.194464D+01
 0.191531D+01 0.198328D+01 0.100683D+00-0.236392D-01 0.200655D+01 
0.100142D+01
 0.572501D+01 0.131652D+01 0.112175D+01 0.186140D+01 0.212321D+01 
0.207455D+01
 0.201915D+01-0.224004D+01 0.966613D+00 0.459977D+01 0.133921D+01 
0.613532D+01
 0.201852D+01 0.198881D+01 0.203360D+01 0.200934D+01-0.115235D+01 
0.975292D+00
-0.756997D-01 0.341922D+01 0.334352D+01 0.360463D-01-0.112819D+00

I need a function that reads these numbers back into R. I tried around with

read.fwf("pv.lpr", widths=rep(13, 6), skip=1)
read.fortran()
scan()

without success.




More information about the R-help mailing list