BookmarkSubscribeRSS Feed
nassimsa
Obsidian | Level 7

Hello

 

I am working on elasticities true a translog cost function. I used the example on sas to work with my data and i am blocked with the Error below. Please help me find a solution to solve it and continue the program 

here is my program :

 

173   proc model data = WORK.ER;
174   parameters a_c gcc gcg gcf gch gce gcs gcy
175   a_g ggc ggg ggf ggh gge ggs ggy
176    a_f gfc gfg gff gfh gfe gfs gfy
177   a_h ghc ghg ghf ghh ghe ghs ghy
178    a_e gec geg gef geh gee ges gey
179     a_s gsc gsg gsf gsh gse gss gsy;
180      endogenous sc sg sf sh se ss;
181      exogenous pc pg pf ph pe ps y;
182
183      /*System of Derived Demand Equations*/
184     sc = a_c + gcc*log(pc) + gcg*log(pg) + gcf*log(pf) + gch*log(ph) + gce*log(pe)
185     + gcs*log(ps) + gcy*log(y);
186     sg = a_g + ggc*log(pc) + ggg*log(pg) + ggf*log(pf) + ggh*log(ph) + gge*log(pe)
187    + ggs*log(ps) + ggy*log(y);
188     sf = a_f + gfc*log(pc) + gfg*log(pg) + gff*log(pf) + gfh*log(ph) + gfe*log(pe)
189     + gfs*log(ps) + gfy*log(y);
190     sh = a_h + ghc*log(pc) + ghg*log(pg) + ghf*log(pf) + ghh*log(ph) + ghe*log(pe)
191     + ghs*log(ps) + ghy*log(y);
192      se = a_e + gec*log(pc) + geg*log(pg) + gef*log(pf) + geh*log(ph) + gee*log(pe)
193     + ges*log(ps) + gey*log(y);
194       ss = a_s + gsc*log(pc) + gsg*log(pg) + gsf*log(pf) + gsh*log(ph) + gse*log(pe)
195        + gss*log(ps) + gsy*log(y);
196
197
 
198       fit sc sg sf sh se ss / itsur converge=0 maxiter=32000;
199
200
201 test "Homogeneity"
202 gcc+gcg+gcf+gch+gce+gcs=0,
203 ggc+ggg+ggf+ggh+gge+ggs=0,
204 gfc+gfg+gff+gfh+gfe+gfs=0,
205 ghc+ghg+ghf+ghh+ghe+ghs=0,
206 gec+geg+gef+geh+gee+ges=0,
207 gsc+gsg+gsf+gsh+gse+gss=0, / lr;
208
209 test "Symmetry"
210 gcg=ggc,
211 gcf=gfc,
212 gch=ghc,
213 gce=gec,
214 gcs=ges,
215 ggf=gfg,
216 ggh=ghg,
217 gge=geg,
218 ggs=gsg,
219 gfh=ghf,
220 gfe=gef,
221 gfs=gsf,
222 ghe=geh,
223 ghs=gsh,
224 ges=gse, / lr;
225
226 test "Joint Homogeneity and Symmetry"
227 gcc+gcg+gcf+gch+gce+gcs=0,
228 ggc+ggg+ggf+ggh+gge+ggs=0,
229 gfc+gfg+gff+gfh+gfe+gfs=0,
230 ghc+ghg+ghf+ghh+ghe+ghs=0,
231 gec+geg+gef+geh+gee+ges=0,
232 gsc+gsg+gsf+gsh+gse+gss=0,
233 gcg=ggc,
234 gcf=gfc,
235 gch=ghc,
236 gce=gec,
237 gcs=ges,
238 ggf=gfg,
239 ggh=ghg,
240 gge=geg,
241 ggs=gsg,
242 gfh=ghf,
243 gfe=gef,
244 gfs=gsf,
245 ghe=geh,
246 ghs=gsh,
247 ges=gse, / lr;
248 run;
 
WARNING: The option CONVERGE=0 value specified is too small. The option value is reset to CONVERGE=1.49167E-154.
ERROR: A l'itération ITSUR 0 there are 7 nonmissing observations available. At least 8 are needed to compute the next iteration.
249
250
251 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

 

 

 

1 REPLY 1
nassimsa
Obsidian | Level 7

I found the problem and would like to share it in case someone has the same case. It was because of my data , i analysed from 2011 to 2017 and it was't enough data thats why SAS was saying 7 nonmissing observation available. I then added more data , more years and it worked. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 676 views
  • 0 likes
  • 1 in conversation