# The "rqlm" package # CRAN page: https://cran.r-project.org/web/packages/rqlm/ # Example R code for implementing the modified Poisson and least-squares regressions # Hisashi Noma # The Institute of Statistical Mathematics, Tokyo, Japan # January 21, 2024 ### # Download the R package file by the following command: install.packages("rqlm") ### library("rqlm") # load the "rqlm" package data(exdata02) rqlm(y ~ x1 + x2 + x3 + x4, data=exdata02, family=poisson, eform=TRUE) # Modifed Poisson regression analysis # Coefficient estimates are translated to risk ratio scales rqlm(y ~ x1 + x2 + x3 + x4, data=exdata02, family=gaussian) # Modifed least-squares regression analysis rqlm(y ~ x1 + x2 + x3 + x4, data=exdata02, family=gaussian, digits=3) # Modifed least-squares regression analysis # Number of decimal places can be changed by specifying "digits"