| pc2p0 | R Documentation |
Given the output of DeltaB2pc_cat3logit() or
DeltaB2pc_ord3logit(), the coordinates of points on the
edge are computed for each curve of the field of points
given in input.
pc2p0(pc, DeltaB, edge = 0.01, flink) pc2p0_single(pc, DeltaB, w, edge, flink)
pc |
|
DeltaB |
either a matrix Δ^TB\in\textbf{R}^{1\times 2}
or a vector of length 2, if the model is categorical; otherwise
a matrix Δ^TB\in\textbf{R}^{1\times 1} or a |
edge |
width of the border of the ternary plot. |
flink |
named |
A named list with two components:
status |
a |
pp |
a |
library(magrittr)
# For the categorical logit model
depoDeltaB <- c(0.05, 0.08)
plot3logit:::DeltaB2pc_cat3logit(depoDeltaB) %>%
plot3logit:::pc2p0(depoDeltaB, flink = list(
linkfun = plot3logit:::linkfun_cat3logit,
linkinv = plot3logit:::linkinv_cat3logit))
# For the ordinal logit model
depoDeltaB <- 0.08
depoalpha <- c(-0.4, 0.4)
plot3logit:::DeltaB2pc_ord3logit(depoDeltaB, depoalpha) %>%
plot3logit:::pc2p0(depoDeltaB, flink = list(
linkfun = function(x) plot3logit:::linkfun_ord3logit(x, depoalpha),
linkinv = function(x) plot3logit:::linkinv_ord3logit(x, depoalpha)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.