Learn R Programming

radiant.model (version 0.8.0)

logistic: Logistic regression

Description

Logistic regression

Usage

logistic(dataset, rvar, evar, lev = "", int = "", wts = "None",
  check = "", data_filter = "")

Arguments

dataset

Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant

rvar

The response variable in the model

evar

Explanatory variables in the model

lev

The level in the response variable defined as _success_

int

Interaction term to include in the model

wts

Weights to use in estimation

check

Use "standardize" to see standardized coefficient estimates. Use "stepwise-backward" (or "stepwise-forward", or "stepwise-both") to apply step-wise selection of variables in estimation

data_filter

Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")

Value

A list with all variables defined in logistic as an object of class logistic

Details

See https://radiant-rstats.github.io/docs/model/logistic.html for an example in Radiant

See Also

summary.logistic to summarize the results

plot.logistic to plot the results

predict.logistic to generate predictions

plot.model.predict to plot prediction output

Examples

Run this code
# NOT RUN {
result <- logistic("titanic", "survived", c("pclass","sex"), lev = "Yes")
result <- logistic("titanic", "survived", c("pclass","sex"))

# }

Run the code above in your browser using DataLab