search for: thisterm

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

2017 Nov 02
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...o 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 04
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...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 m...
2017 Oct 31
0
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...s() 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, however, some of the pages de...
2017 Nov 06
2
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...ot; 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
...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 &gt...
2017 Nov 04
0
Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing
...nderlying 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 t...
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
...gt; >> > "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." > &gt...