[R-pkg-devel] How to obtain intercept of intercept-only glm in Fortran?

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Mon May 6 11:14:22 CEST 2019

On Sat, 4 May 2019 22:41:16 +0000
"Wang, Zhu" <wangz1 using uthscsa.edu> wrote:

> In an R package I would like to compute intercept for an
> intercept-only GLM in a Fortran subroutine.

If all else fails, you could use R API [*] to call coef(glm.fit(...)),
though it might require writing a C or C++ wrapper to avoid translating
all function prototypes from Rinternals.h into Fortran 2003 C
interoperability syntax.

Best regards,


More information about the R-package-devel mailing list