Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

deleted 32 characters in body
Source Link
Jan
  • 12k
  • 7
  • 25
  • 36

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)

Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)

Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)

Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

I'm trying to fit a zero-truncated negative binomial model using the vglm()vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)
Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : 
 could not find function "dposnegbin2"

Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2()dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)
Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : 
 could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)

Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

added 68 characters in body
Source Link
Ariel
  • 11
  • 2

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)
Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : 
 could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)
Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : 
 could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

I'm trying to fit a zero-truncated negative binomial model using the vglm() function from the VGAM package in R. However, I'm encountering the following error:

> dat <- read.dta("https://stats.idre.ucla.edu/stat/data/ztp.dta")
> library(VGAM)
> m1 <- vglm(stay ~ age + hmo + died, family = posnegbinomial(), data = dat)
Error in dposnegbin2(y, kmat, munb = munb, log = TRUE) : 
 could not find function "dposnegbin2"

I’ve confirmed that the VGAM package is loaded, but the error suggests an internal function dposnegbin2() is not available.

Has anyone else encountered this issue? Is there a known fix? I'm also open to alternative ways to fit a positive or zero-truncated negative binomial model in R.

Any help would be appreciated!

added 11 characters in body
Source Link
r2evans
  • 167.7k
  • 8
  • 92
  • 176
Loading
Source Link
Ariel
  • 11
  • 2
Loading
lang-r

AltStyle によって変換されたページ (->オリジナル) /