transform_response | R Documentation |
transform_response
transforms response so that it can be processed in
further steps. Function transforms input into a factor
of values 1 and 0
corresponding to the condition of interest and absence of it respectively.
transform_response(response, .condition = NULL)
response |
A factor, integer or character vector of categories. |
By default function takes some assumption on how to make transformation,
depending on the class of response
:
factor. Function considers the condition of interest first level in factor.
integer. Function considers the condition of interest the min
value of\
response.
character. Function considers the condition of interest the first value in
unique(response)
after using sort
.
factor
of levels (0,1)
, where 1 represents the condition of
interest and 0 absence of it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.