Displaying 2 results from an estimated 2 matches for "sum_constraint".
Did you mean:
oom_constraint
2025 Apr 30
1
Estimating regression with constraints in model coefficients
...- loglik + sum(log(pk[y == k]))
> > > > > > > > }
> > > > > > > > return(-loglik)
> > > > > > > > }
> > >
>
> > > > > > > > # Constraint: sum(beta) = C
> > > > > > > > sum_constraint <- function(beta, C) {
> > > > > > > > return(sum(beta) - C)
> > > > > > > > }
> > >
>
> > > > > > > > # Define objective and constraint wrapper
> > > > > > > > objective <- function(be...
2025 May 04
0
Estimating regression with constraints in model coefficients - Follow-up on Constrained Ordinal Model — Optimized via COBYLA
...> > > > > > > > > }
> > > > > > > > > > return(-loglik)
> > > > > > > > > > }
>
> > > > > > > > > > # Constraint: sum(beta) = C
> > > > > > > > > > sum_constraint <- function(beta, C) {
> > > > > > > > > > return(sum(beta) - C)
> > > > > > > > > > }
>
> > > > > > > > > > # Define objective and constraint wrapper
> > > > > > > > > >...