constraints in regression coefficients

17 views
Skip to first unread message

Alok Bohara

unread,
May 12, 2022, 5:51:30 PMMay 12
to R-inla discussion group
I am trying to put constraints on regression coefficients
form<-Y~   A1+A2+A3 + B1+ B2+B3

I want to constraint 
A1=B1
A2=B2
A3=B3.

Any tips?


Alok

Helpdesk

unread,
May 14, 2022, 2:26:32 AMMay 14
to Alok Bohara, R-inla discussion group

A1B1 = A1 + B1
A2B2 = A2 + B2
A3B3 = A3 + B3

then

form = Y ~ A1B1 + A2B2 + A3B3


if you need something else there are various tricks which can be used

-----Original Message-----
From: Alok Bohara <bohar...@gmail.com>
To: R-inla discussion group <r-inla-disc...@googlegroups.com>
Subject: [r-inla] constraints in regression coefficients
Date: Thu, 12 May 2022 14:51:29 -0700 (PDT)

I am trying to put constraints on regression coefficientsform<-Y~   A1+A2+A3 + B1+ B2+B3

I want to constraint 
A1=B1
A2=B2
A3=B3.

Any tips?


Alok
--
You received this message because you are subscribed to the Google Groups "R-inla discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/r-inla-discussion-group/f9ce402e-cf87-4235-b85d-1e72a43641e6n%40googlegroups.com.

--
Håvard Rue
he...@r-inla.org
Reply all
Reply to author
Forward
0 new messages