Open DominiqueMakowski opened 1 month ago
Here is a start...
using RDatasets
data = dataset("datasets", "mtcars")
# Variables
y = data[!, :MPG]
x = data[!, :Gear]
# Define the monotonic function
function monotonic(scale::Vector{Float64}, i::Int)
if i == 0
return 0.0
else
return length(scale) * sum(scale[1:i])
end
end
The main remaining feature I could see in this package are Monotonic effects, used to model Likert scales as predictors.
Here is the stan code: