<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Bernhard,</p>
    <p>Sorry, but I can't replicate the error. I attach the result of my
      run.<br>
    </p>
    Here is my sessionInfo()<br>
    <br>
    R version 3.4.3 (2017-11-30)<br>
    Platform: x86_64-apple-darwin15.6.0 (64-bit)<br>
    Running under: macOS High Sierra 10.13.4<br>
    <br>
    Matrix products: default<br>
    BLAS:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib<br>
    LAPACK:
/Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib<br>
    <br>
    locale:<br>
    [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8<br>
    <br>
    attached base packages:<br>
    [1] parallel  stats     graphics  grDevices utils     datasets 
    methods   base     <br>
    <br>
    other attached packages:<br>
    [1] rugarch_1.4-0<br>
    <br>
    loaded via a namespace (and not attached):<br>
     [1] Rcpp_0.12.16                magrittr_1.5               
    knitr_1.16                  misc3d_0.8-4               <br>
     [5] xtable_1.8-2                lattice_0.20-35            
    R6_2.2.2                    FNN_1.1                    <br>
     [9] Rsolnp_1.16                 GeneralizedHyperbolic_0.8-1
    SkewHyperbolic_0.3-2        tools_3.4.3                <br>
    [13] xts_0.10-2                  spd_2.0-1                  
    grid_3.4.3                  KernSmooth_2.23-15         <br>
    [17] htmltools_0.3.6             yaml_2.1.18                
    digest_0.6.15               rgl_0.98.1                 <br>
    [21] numDeriv_2016.8-1           Matrix_1.2-12              
    shiny_1.0.5                 nloptr_1.0.4               <br>
    [25] DistributionUtils_0.5-1     ks_1.10.7                  
    htmlwidgets_1.0             codetools_0.2-15           <br>
    [29] mime_0.5                    compiler_3.4.3             
    multicool_0.1-10            expm_0.999-2               <br>
    [33] jsonlite_1.5                truncnorm_1.0-7            
    mvtnorm_1.0-6               httpuv_1.3.6.2             <br>
    [37] zoo_1.8-1<br>
    <br>
    Regards,<br>
    <br>
    Alexios<br>
    <br>
    <div class="moz-cite-prefix">On 4/17/18 2:16 PM, Bernhard Lange
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:004401d3d691$696a1c00$3c3e5400$@web.de">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Dear
            all</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I‘m
            trying to do a rolling forecast for a time series of stock
            returns aiming to achieve One-step-ahead VaR99 forecasts
            with the rugarch package.</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">However,
            I'm facing problems while using the ugarchroll function.</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">When
            running this code:</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">library(rugarch)</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">specEGARCHNoMeanSstd
            <- ugarchspec(variance.model = list(model="eGARCH",
            garchOrder = c(1,1)),</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"> 
                                             mean.model =
            list(armaOrder=c(0,0)), distribution.model = "sstd")</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">EGarchNoMSstd
            <- ugarchroll(specEGARCHNoMeanSstd, data=returnsXTS,
            n.start = 500, refit.every = 100,</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"> 
                          refit.window = "moving", window.size = 500,
            solver="hybrid", calculate.VaR = T, VaR.alpha = c(0.01))</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I
            receive the following Error as value in the resulting data
            object:</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Error
            in try(.C("c_qsstd", p = as.double(p), mu = as.double(mu),
            sigma = as.double(sigma),  : \n  NA/NaN/Inf in foreign
            function call (arg 3)\n.</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I
            figured out that the function produces "Inf"s on the
            conditional sigma. However I'm not able to find a reason for
            that.</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Please
            note that the same model with n.start = 1000 and window.size
            = 1000 produces data without errors.</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I
            would appreciate every hint in the right direction.</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">I
            attached a data set and script for reproduction.</span><br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Best
            regards,</span><br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Bernhard
            Lange<o:p></o:p></span></p>
        <p>PS: I’m new to R mailing lists. So please let me know, if I
          need to provide more information for future postings.<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:R-SIG-Finance@r-project.org">R-SIG-Finance@r-project.org</a> mailing list
<a class="moz-txt-link-freetext" href="https://stat.ethz.ch/mailman/listinfo/r-sig-finance">https://stat.ethz.ch/mailman/listinfo/r-sig-finance</a>
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
</pre>
    </blockquote>
    <br>
  </body>
</html>