Warning (non-fatal): Comments beginning with # are deprecated. Please use // in place of # for line comments.
Warning (non-fatal): assignment operator <- deprecated in the Stan language; use = instead.
Warning (non-fatal): increment_log_prob(...); is deprecated and will be removed in the future.
Warning (non-fatal): the if_else() function is deprecated. Use the conditional operator '?:' instead.
Warning: Deprecated function 'cauchy_log'; please replace suffix '_log' with '_lpdf' for density functions or '_lpmf' for mass functions
....
Change comments # to //
Change assignment operator <- to =
Change increment_log_prob( to target +=
Change if_else() to ?:
change function names, syntax for all functions _log() - name change, use | instead of comma after initial arg
Additional best practice: use compound declare/define whenever possible
Stan 2.17.1+ returns warnings:
#
to//
<-
to=
increment_log_prob(
totarget +=
if_else()
to?:
|
instead of comma after initial argAdditional best practice: use compound declare/define whenever possible