ppsp-team / PyNM

Lightweight Python implementation of Normative Modelling
BSD 3-Clause "New" or "Revised" License
30 stars 12 forks source link

GAMLSS - random() in formula generates error #7

Closed harveyaa closed 3 years ago

harveyaa commented 3 years ago

When random() is used in a formula of the GAMLSS model an error is produced, that the what parameter is not found. Likely caused by the model not converging & as a result not being able to predict from it.

harveyaa commented 3 years ago

Update: error manifests even when fitting algorithm converges. Get a warning New way of prediction in random() (starting from GAMLSS version 5.0-6) that seems like a good clue.

harveyaa commented 3 years ago

SOLVED: error related to rpy2 interface, put trouble code section directly in R w/ string type explicit for parameter argument in predict.