Dear community,

i am currently trying to extract the four parameters of a fitting output/call:

This output will be generated around 5000 times. And i need the highlighted values

in a seperate table.

My for loop is:

Thanks for any advice.

Kind regards,

Luca

i am currently trying to extract the four parameters of a fitting output/call:

Call:

fit.gld(x = dataimportforR$Allianz[(1 + i): (270 + i)], method = "MoM")

Data: dataimportforR$Allianz[(1 + i): (270 + i)] (270 obs.); Method: = mom

Parameters: 'para' =

Goodness-of-fit:

Chi-Square = 47.82907, p-value = 2.748937e-07

x y

Min. :-0.07169 Min. : 0.01265

1st Qu.:-0.03059 1st Qu.: 0.32288

Median : 0.01051 Median : 1.29328

Mean : 0.01051 Mean : 6.09430

3rd Qu.: 0.05162 3rd Qu.: 9.39269

Max. : 0.09272 Max. :26.63129

fit.gld(x = dataimportforR$Allianz[(1 + i): (270 + i)], method = "MoM")

Data: dataimportforR$Allianz[(1 + i): (270 + i)] (270 obs.); Method: = mom

Parameters: 'para' =

**(0.002414,-1.211,-0.01284,-0.009803)**Goodness-of-fit:

Chi-Square = 47.82907, p-value = 2.748937e-07

x y

Min. :-0.07169 Min. : 0.01265

1st Qu.:-0.03059 1st Qu.: 0.32288

Median : 0.01051 Median : 1.29328

Mean : 0.01051 Mean : 6.09430

3rd Qu.: 0.05162 3rd Qu.: 9.39269

Max. : 0.09272 Max. :26.63129

in a seperate table.

My for loop is:

for(i in 0:4891){

print(fit.gld(x = dataimportforR$Allianz[(1+i): (270+i)], method ="MoM"))

}

print(fit.gld(x = dataimportforR$Allianz[(1+i): (270+i)], method ="MoM"))

}

Kind regards,

Luca

Last edited: