var_center | R Documentation |

`var_center`

computes the univariate assignment variable, `x`

based on the cutoffs of
two assignment variables: `x1`

and `x2`

.
This is an internal function and is typically not directly invoked by the user.
It can be accessed using the triple colon, as in rddapp:::var_center().

```
var_center(x, cut = c(0, 0), t.design = NULL, t.plot = FALSE)
```

`x` |
Data frame or matrix of two assignment variables,
where the first column is |

`cut` |
A numeric vector of length 2 containing the cutpoints at which assignment to the treatment is determined.
The default is |

`t.design` |
A character vector of length 2 specifying the treatment option according to design.
The first entry is for |

`t.plot` |
A logical value indicating whether to calculate the univariate treatment variable, |

`var_center`

returns the univariate assignment variable as a vector
according to the design.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.