r-spatial / spatialreg

spatialreg: spatial models estimation and testing
https://r-spatial.github.io/spatialreg/
41 stars 12 forks source link

predict.Sarlm() not exported #46

Closed kubavorel closed 4 months ago

kubavorel commented 4 months ago

Hello,

I am using the newest version of spatialreg package 1.3.2 in R Console as well as in RStudio, in both cases getting the Error: 'predict.Sarlm' is not an exported object from 'namespace:spatialreg'.

I cannot find the function neither in listing , which I paste bellow, nor in NAMESPACE file of the package. Is it supposed to be public function? How can I use the estimated errorsarlm model to make predictions?

Thank you and appologize, if the bug is on my side.

ls("package:spatialreg") [1] "aple" "aple.mc" "aple.plot"
[4] "as.spam.listw" "as_dgRMatrix_listw" "as_dsCMatrix_I"
[7] "as_dsCMatrix_IrW" "as_dsTMatrix_listw" "bptest.Sarlm"
[10] "can.be.simmed" "coerce" "create_WX"
[13] "do_ldet" "eigen_pre_setup" "eigen_setup"
[16] "eigenw" "errorsarlm" "get.ClusterOption"
[19] "get.coresOption" "get.mcOption" "get.VerboseOption"
[22] "get.ZeroPolicyOption" "GMargminImage" "GMerrorsar"
[25] "griffith_sone" "gstsls" "Hausman.test"
[28] "cheb_setup" "impacts" "intImpacts"
[31] "invIrM" "invIrW" "Jacobian_W"
[34] "jacobianSetup" "l_max" "lagmess"
[37] "lagsarlm" "lextrB" "lextrS"
[40] "lextrW" "listw2U_Matrix" "listw2U_spam"
[43] "lmSLX" "localAple" "LR.Sarlm"
[46] "LR1.Lagmess" "LR1.Sarlm" "LR1.Spautolm"
[49] "LU_prepermutate_setup" "LU_setup" "Matrix_J_setup"
[52] "Matrix_setup" "mcdet_setup" "MCMCsamp"
[55] "ME" "mom_calc" "mom_calc_int2"
[58] "moments_setup" "powerWeights" "sacsarlm"
[61] "SE_classic_setup" "SE_interp_setup" "SE_whichMin_setup"
[64] "set.ClusterOption" "set.coresOption" "set.mcOption"
[67] "set.VerboseOption" "set.ZeroPolicyOption" "similar.listw"
[70] "spam_setup" "spam_update_setup" "SpatialFiltering"
[73] "spautolm" "spBreg_err" "spBreg_lag"
[76] "spBreg_sac" "stsls" "subgraph_eigenw"
[79] "trW" "Wald1.Sarlm"

rsbivand commented 4 months ago

Repeat of https://github.com/r-spatial/spatialreg/issues/32#issuecomment-1196015339; just use predict().

kubavorel commented 4 months ago

Thank you, predict() works, I have wrongly used spatialreg::predict(). Appologize for ticket. Thank you for your great package. Best regards, Jakub Vorel

Dne čt 22. 2. 2024 11:26 uživatel Roger Bivand @.***> napsal:

Closed #46 https://github.com/r-spatial/spatialreg/issues/46 as completed.

— Reply to this email directly, view it on GitHub https://github.com/r-spatial/spatialreg/issues/46#event-11889069574, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDJUOMVLASRZZHBXSEOPHLYU4MLLAVCNFSM6AAAAABDURI4RWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRHA4DSMBWHE2TONA . You are receiving this because you authored the thread.Message ID: @.***>