Hi,

I'm having a hard time to get matwrite to work (SSC) and from here:
https://ideas.repec.org/c/boc/bocode/s448301.html

I have installed it of course and I'm getting "unrecognized command":
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input double(t ym CAR_S)
193 193   -4.955649465375698
194 194   -6.339490131920598
195 195  -2.2085909105983883
196 196   5.0697072999447546
197 197   1.5230009468702013
198 198    .4465776036932692
199 199   1.6849011886329255
200 200   -.3153071843080411
201 201   1.0034142523957397
202 202    3.173579966108508
203 203    .3626220170161193
204 204   3.7606463036604745
205 205   1.6097575927271197
206 206   1.5511188873208348
207 207   -.5901847848517586
208 208    1.022720013505459
209 209    .8956018347505074
210 210    -9.06956574407067
211 211   -4.356956415343178
212 212    .8692812643197029
213 213    2.155593145782702
214 214   -1.105166282830968
215 215  -1.9155843469957576
216 216    2.394801626547746
217 217   .24130812262438894
218 218    4.677405785053766
219 219   2.5613313637882698
220 220    .9572651020898989
221 221    .5885842700802983
222 222   -2.341790344477331
223 223   1.0768635318696078
224 224    .5129555054158106
225 225   1.8504713044698482
226 226    5.721799946508766
227 227  -.40342807934669833
228 228    3.986336890125122
229 229    .8113956057296925
230 230       4.813445457096
231 231     2.45576711718332
232 232   .21289686762756188
233 233   1.7124875966774804
234 234   1.1436768405005182
235 235   2.6345094579980612
236 236 -.007732036831873401
237 237    3.590608189676082
238 238   1.2159039510371559
239 239   -.5466841823464981
240 240   1.5514306796014525
241 241    2.894552477629012
242 242   -.9724231404096386
243 243   -3.388116209394454
244 244   2.2770837124208687
245 245 -.047009329370436115
246 246   1.1231010098306924
247 247   1.0156940088288544
248 248    .9350310254615996
249 249   1.4001954350949577
250 250  -.19086276571913174
251 251   -1.730841501540115
252 252    3.326560411905674
253 253   -.6055385093723241
254 254   -.2330857297221054
255 255   2.0090884593451213
256 256    .8087691581694171
257 257    -.860190504754828
258 258    2.783416631801735
259 259    .4189224092838906
260 260   2.5616379593537895
261 261  -1.7545000467375578
262 262  -2.4181270254237512
263 263   1.3396784957990593
264 264   1.1709206337278675
265 265   -1.320829458386171
266 266     .462360687258057
267 267   1.9000914417279373
268 268   2.9679684801061432
269 269   -.9998566749570248
270 270    1.012491305122047
271 271  -.13482369096798166
272 272   1.4429577138271052
273 273    .4836774477703438
274 274  -1.9621027902266837
275 275  -1.7251334281134019
276 276    .8021924416397117
277 277   1.5691281499534069
278 278  -1.7022888575502682
279 279    1.046120612915143
280 280    .9219742775645444
281 281   -.7226977368491909
282 282   1.1101008297093193
283 283   1.0807732720386911
284 284    -.543479577743237
285 285    .9559707941618126
286 286     1.29348537214153
287 287   .25298857629446225
288 288   1.9385891487724078
289 289   .14288137609656726
290 290    .7208830272759534
291 291    2.251307370696712
292 292    .7799676743364827
end
format %tm ym
Code:
matwrite ym t using c:\matlabfile, replace
Anyone knows what I'm doing wrong? Thanks!