search for: whichbit

Displaying 8 results from an estimated 8 matches for "whichbit".

2017 Nov 02
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...unction. > In order to find a description for the behavior, I had to look in the > underlying C code, buried above the "TermCode" function of the "model.c" > file, which says: > > "TermCode decides on the encoding of a model term. Returns 1 if variable > ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if it is to > be encoded by dummy variables. This is decided using the heuristic > described in Statistical Models in S, page 38." > > I do not have a copy of this book, and I suspect most R users do not as >...
2017 Nov 04
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...for the behavior, I had to look in the >> > underlying C code, buried above the "TermCode" function of the "model.c" >> > file, which says: >> > >> > "TermCode decides on the encoding of a model term. Returns 1 if variable >> > ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if it >> > is to >> > be encoded by dummy variables. This is decided using the heuristic >> > described in Statistical Models in S, page 38." >> > >> > I do not have a copy of th...
2017 Oct 31
0
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...del.matrix() or the terms() function. In order to find a description for the behavior, I had to look in the underlying C code, buried above the "TermCode" function of the "model.c" file, which says: "TermCode decides on the encoding of a model term. Returns 1 if variable ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if it is to be encoded by dummy variables. This is decided using the heuristic described in Statistical Models in S, page 38." I do not have a copy of this book, and I suspect most R users do not as well. Thankfully, howev...
2017 Nov 06
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...ve the "TermCode" function of the >> >> > "model.c" >> >> > file, which says: >> >> > >> >> > "TermCode decides on the encoding of a model term. Returns 1 if >> >> > variable >> >> > ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if >> >> > it >> >> > is to >> >> > be encoded by dummy variables. This is decided using the heuristic >> >> > described in Statistical Models in S, page 38." >...
2017 Nov 02
0
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...find a description for the behavior, I had to look in the > > underlying C code, buried above the "TermCode" function of the "model.c" > > file, which says: > > > > "TermCode decides on the encoding of a model term. Returns 1 if variable > > ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if it > is to > > be encoded by dummy variables. This is decided using the heuristic > > described in Statistical Models in S, page 38." > > > > I do not have a copy of this book, and I suspect mo...
2017 Nov 04
0
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...the > >> > underlying C code, buried above the "TermCode" function of the > "model.c" > >> > file, which says: > >> > > >> > "TermCode decides on the encoding of a model term. Returns 1 if > variable > >> > ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if it > >> > is to > >> > be encoded by dummy variables. This is decided using the heuristic > >> > described in Statistical Models in S, page 38." > >> > > >> > I...
2017 Oct 27
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
Hello Tyler, I want to bring to your attention the following document: "What happens if you omit the main effect in a regression model with an interaction?" (https://stats.idre.ucla.edu/stata/faq/what-happens-if-you-omit-the-main-effect-in-a-regression-model-with-an-interaction). This gives a useful review of the problem. Your example is Case 2: a continuous and a categorical regressor.
2017 Nov 06
0
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...nction of the > >> >> > "model.c" > >> >> > file, which says: > >> >> > > >> >> > "TermCode decides on the encoding of a model term. Returns 1 if > >> >> > variable > >> >> > ``whichBit'' in ``thisTerm'' is to be encoded by contrasts and 2 if > >> >> > it > >> >> > is to > >> >> > be encoded by dummy variables. This is decided using the heuristic > >> >> > described in Statistical Models in S,...