I've got the following error message when fitting a one factor model:
Error: The observed covariance matrix is not a symmetric matrix
Below is the code. When looking at the cov matrix it looked quite summetrical to me...
Does somebody have suggestions?
Thanks a lot in advance.
obsnames = c("intrthought","recdreams","flashbk","emoreact","physreact","avoidthou","avoidremind","amnesia","lossinter","detach","restrAff","foreFut","SleepDis","Irritab","DifConcentr","Hypervigilance","ExaggStartle")
obslabels = list (obsnames,obsnames)
values = c(1.00,
.70, 1.00,
.60, .70, 1.00,
.67, .66, .64, 1.00,
.64, .66, .62, .66, 1.00,
.43, .47, .49, .50, .58, 1.00,
.53, .55, .51, .55, .63, .68, 1.00,
.34, .39, .40, .37, .45, .36, .46, 1.00,
.47, .45, .44, .48, .55, .52, .61, .52, 1.00,
.46, .49, .47, .47, .52, .46, .52, .38, .64, 1.00,
.42, .45, .41, .44, .51, .43, .48, .42, .57, .69, 1.00,
.45, .49, .45, .50, .54, .44, .49, .36, .50, .57, .53, 1.00,
.48, .48, .45, .47, .49, .45, .47, .34, .48, .54, .46, .54, 1.00,
.45, .45, .48, .47, .47, .47, .48, .37, .55, .55, .50, .53, .66, 1.00,
.51, .47, .44, .49, .53, .47, .45, .41, .55, .58, .55, .54, .62, .66, 1.00,
.46, .46, .39, .44, .45, .35, .03, .27, .40, .45, .39, .51, .46, .43, .55, 1.00,
.55, .54, .50, .53, .57, .41, .46, .36, .48, .50, .43, .54, .53, .53, .56, .72, 1.00)
SD = c(1.42,1.47,1.49,1.53,1.54,1.50,1.50,1.47,1.53,1.56,1.55,1.50,1.51,1.47,1.43,1.53,1.51)
krausecov = SEM_obsmatrix(lowtri=values,SD=SD,labels=obslabels)
krausecov