powered by
lapl_aprx2 is a more flexible alternative to lapl_aprx. This creates glm objects from which joint asymptotic distributions can be computed.
lapl_aprx2
lapl_aprx
glm
lapl_aprx2(y, x, family = "binomial", ...)
the binary dependent variable y
the matrix of independent variables.
a parameter to be passed glm(), defaults to the logit model
glm()
additional parameters to be passed to glm()
val A list of mode variance-covariance matrix, and scale factor for proposal draws from the multivariate normal distribution.
# NOT RUN { y = indicat(faithful$waiting,mean(faithful$waiting)) x = scale(cbind(faithful$eruptions,faithful$eruptions^2)) (gg<- lapl_aprx2(y,x)); coef(gg); vcov(gg) # }
Run the code above in your browser using DataLab