Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • $\begingroup$ @rnorouzian This follow-up is exactly why I asked the questions in my comments to the original question. My answer provides the algebra and that will work no matter how many predictors you have. The other bit you need is an understanding of how categorical variables are expanded into a set of numeric contrasts, then it's just repeating that algebra with those numeric contrasts. If nb_wght is just 0's and 1's, it's already equivalent to a two-level categorical variable coded with dummy/treatment contrasts. $\endgroup$ Commented Feb 6, 2021 at 11:52