Re: [R] SEM specify RAM model

2014-06-05 Thread John Fox
Dear George, It's not entirely clear to me what you're trying to do, and where the loop comes in. As has already been suggested, you can store the model specification in a file or files. Also, the "RAM" form of the model can be specified as a character matrix, a numeric matrix, or a "semmod"

Re: [R] SEM specify RAM model

2014-06-04 Thread Bernardo Santos
Dear George, I am not very used to sem package, but it seems to me that you can use a file as an argument of specifyModel() or specifyEquations() functions, instead of input each line individually on the shell. see the first argument on ?specifyEquations Maybe you could write such matrix insid

[R] SEM specify RAM model

2014-06-04 Thread George Parish
Dear all, I am trying to create multiple SEM models in a loop - so that if I change the data they can easily be re-created rather than re-creating each RAM model line by line - therein lies my problem. I have a dataframe set out as follows1 Duration -> RC1 cov1 -0.2563002