| fitBraidFlipped | R Documentation |
Functions to fit protective, oppoistional and coactive BRAID surfaces, and more specific flipped surfaces if necessary.
fitBraidFlipped(formula, data, flip, model, links = NULL, ...)
fitProtectiveBraid_A(formula, data, ...)
fitProtectiveBraid_B(formula, data, ...)
fitOppositionalBraid_A(formula, data, ...)
fitOppositionalBraid_B(formula, data, ...)
fitCoactiveBraid_pure(formula, data, ...)
fitCoactiveBraid_partial(formula, data, ...)
formula |
Either an object of class |
data |
If |
flip |
String specifying the direction or directions of the surface's flip. Must be one of "A", "B", or "both". |
model, links |
Parameters |
... |
Additional parameters to be passed to |
Though fitBraidFlipped offers the option of fitting any flipped BRAID
surface model specified by flip, this is not recommended, as the interplay
between flipping paramteers and parameter constraints becomes very confusing
very quickly. In nearly all cases, it is preferable to use one of the
pre-defined flipped fitting functions.
fitProtectiveBraid_A and fitProtectiveBraid_B fit "protective" surfaces
in which one drug has no effect in isolation, but attenuates or eliminates
the effect of the other. fitProtectiveBraid_A generates a surface in which
drug A is active and is attenuated by drug B; fitProtectiveBraid_B
generates the reverse.
fitOppositinalBraid_A and fitOppositionalBraid_B produce "oppositional"
surfaces in which a second drug produces an effect that is in the opposite
direction to the first drug, but which is then overwhelmed by the effect of
the first drug at higher concentrations. fitProtectiveBraid_A generates a
surface in which the maximal effect of drug A dominates a high concentrations,
fitProtectiveBraid_B generates the reverse. Note that the A and B in
the function names specify which compound's effect is dominant, not the
direction of the underlying flip; in actuality the surfaces generated by
fitProtectiveBraid_A are produced by flipping along the B axis.
fitCoactiveBraid_pure and fitCoactiveBraid_partial produce "coactive"
surfaces, in which both drugs have no or minimal effect in isolation, but
produce a pronounced effect when both are present. fitCoactiveBraid_pure
generates surfaces in which both drugs have no effect at all in isolation;
fitCoactiveBraid_partial generates surfaces in which either drug may have
a smaller partial effect in isolation.
A fit object of class braidrmflip. This structure contains the
exact same elements as an object of class braidrm (see braidrm() for
details) along with one additional element: flip, a character value
specifying the direction that the surface is flipped. The object's
coefficients and flip fields can be used to evaluate and invert the best
fit response surface using evalFlippedBraidModel() and
invertFlippedBraidModel().
fbfit1 <- fitProtectiveBraid_A(measure ~ concA + concB,
protectiveExample, getCIs=FALSE)
coef(fbfit1)
fbfit2 <- fitOppositionalBraid_A(measure ~ concA + concB,
oppositionalExample, getCIs=FALSE)
coef(fbfit2)
fbfit3 <- fitCoactiveBraid_pure(measure ~ concA + concB,
coactiveExample, getCIs=FALSE)
coef(fbfit3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.