Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7950027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:08:31+00:00 2026-06-04T02:08:31+00:00

I would like to be able to edit the Fortran code that is referred

  • 0

I would like to be able to edit the Fortran code that is referred to in the fGarch package.

More specifically I would like to edit the available conditional distributions that can be used by fGarch::garchFit, i.e. including the stable distribution and the generalised hyperbolic distribution.

So having looked into the garchFit() function, I have delved (deepish) into the code, and .aparchLLH.internal() is referred to from the garchFit() function and there is a line in there that refers to Fortran written code.

The specific line that I am referring to is the following bit of code:

    fit <- .Fortran("garchllh", N = as.integer(N), Y = as.double(.series$x), 
        Z = as.double(.series$z), H = as.double(.series$h), 
        NF = as.integer(NF), X = as.double(params), DPARM = as.double(DPARM), 
        MDIST = as.integer(MDIST), MYPAR = as.integer(MYPAR), 
        F = as.double(0), PACKAGE = "fGarch")

I believe that the Fortran function garchllh is what I would like to edit, but do not know how to go about editing it so that I can introduce new distributions into the garchFit() function.

N.B. Just as a note, I do not have much experience in Fortran code, but would like to have a look at it to see if it can be edited and altered to fit for my purpose, so any help on the Fortran editing of code section would be much appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:08:32+00:00Added an answer on June 4, 2026 at 2:08 am

    As mentioned in comments, you need to download the source — a good place would be to start with install.packages("fGarch",type="source") and see that everything compiles properly. Then, look at the package source — seems like you would need to do a pretty straightforward adjustment to dist.f, and probably add more changes to various places where MDIST is set — start with grep MDIST *.R in the R directory of the extracted source. After you’re done and tested, you could also talk to the package maintainers — perhaps they would include your additions in the next version 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like the user to be able to edit the title of the
I would like to be able to spawn a linux process that would only
I would like to be able to bulk edit all the rows for one
I would like to be able to edit conflicts using DiffMerge but when I
I would like to be able to edit text in a UITextField like this:
Our client would like to be able to edit a few pages on their
I would like to be able to copy a text file that's on my
Would like to be able to set colors of headings and such, different font
I would like to be able to change the size of text in a
I would like to be able to abort a specific sql statement if it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.