Description Usage Arguments Details Value See Also Examples
View source: R/carrot_functions.R
Function which computes probabilities of outcomes on the test set by applying regression parameters inferred by a run on the training set. Works for logistic or multinomial regression
1  get_probabilities(trset,testset,outc,mode)

trset 
values of predictors on the training set 
testset 
values of predictors on the test set 
outc 
values of outcomes on the training set 
mode 

In binary mode this function computes the probabilities of the event '0'. In multinomial mode computes the probabilities of the events '0','1',...,'N1'.
Probabilities of the outcomes. In 'binary'
mode returns an array of the size of the number of observations in a testset. In 'multin'
returns an M x N matrix where M is the size of the number of observations in a testset
and N is the number of unique outcomes minus 1.
Function uses multinom
and coef
1 2 3 4 5 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.