Programming the statistical procedures from SAS

Proc calis - LEVMAR optimization can't be complete

Reply
Super Contributor
Posts: 459

Proc calis - LEVMAR optimization can't be complete

Hi,

 

I am trying to run the following CFA:

 

DATA acid(TYPE=COV);
   length _NAME_ $25 ;
   INFILE CARDS MISSOVER;
   INPUT _TYPE_ $ _NAME_ $ fixed_acidity volatile_acidity _citric_acid _residual_sugar _chlorides _free_sulfur_dioxide
		_total_sulfur_dioxide _density _pH _sulphates _alcohol;

datalines;
COV	fixed_acidity 0.751402455 
COV	volatile_acidity -0.001889367 0.010583569	
COV	_citric_acid 0.031676065 -0.00211382 0.014979 
COV	_residual_sugar 0.337959567	0.039108976	0.059257292	22.73550256	
COV	_chlorides 0.000474665 0.000201391 0.000373284 0.008123422 0.000533671 
COV	_free_sulfur_dioxide -0.864887432 -0.177809968 0.19505361 26.08593083 0.040466776 296.0769476	
COV	_total_sulfur_dioxide 3.076856914	0.452613968	0.647374049	85.5573441 0.190342852 460.0495969	1860.4547 
COV	_density 0.000659185	1.03976E-05	5.39133E-05	0.01090554	1.66667E-05	0.015039137	0.067011409	7.92285E-06	
COV	_pH	-0.056717504 -0.000769845 -0.003409967 -0.125274567 -0.000318566 -0.01889529	0.052745224	-3.02827E-05 0.022962298	
COV	_sulphates -0.001766364 -0.000282946 0.00067404 -0.014339262 4.54639E-05 0.075483407 0.667554073 2.47818E-05 0.002439824 0.012880612 
COV	_alcohol -0.117184047 0.005702993	-0.011479966 -2.373351042 -0.010046431 -5.267304899 -23.45720108 -0.00270062	0.017120492	-0.003213893 1.481337248
;
run;


proc calis data=acid  covariance residual modification nobs=3960;
	
	lineqs
	fixed_acidity=           L1 F2 + E1,
    volatile_acidity=        L2 F3 + E2,
	_citric_acid=            L3 F2 + L4 F3 + E3,
	_residual_sugar=         L5 F1 + E4,
	_chlorides=              L6 F1 + E5,
	_free_sulfur_dioxide=    L7 F1 + E6,
	_total_sulfur_dioxide=   L8 F1 + E7,
	_density=                L9 F1 + E8,
	_PH=                     L10 F2 + E9,
	_sulphates=              L11 F3 + E10,
	_alcohol=                L12 F1 + E11;
	variance
	E1-E11 = VARE1 - VARE11,
	F1=1.0,
	F2=1.0,
	F3=1.0;
	COV
	F1 F2 = COV12,
	F1 F3 = COV13,
	F2 F3 = COV23;
run;

But I get the error message that "LEVMAR optimization can't be complete"

 

I can't find out what is wrong with the data, will be very grateful for help.

 

Thanks!

Ask a Question
Discussion stats
  • 0 replies
  • 145 views
  • 0 likes
  • 1 in conversation