Learn R Programming

LoTTA (version 0.1.0)

Bin_data: Function that splits the data into bins and computes the average in each bin

Description

Function that splits the data into bins and computes the average in each bin

Usage

Bin_data(y, x, c = NULL, binsize = 0.2)

Value

list with elements y_bin: list of average values of y in each bin, x_bin: list of middle points for each bin

Arguments

y
  • is the outcome data

x
  • is the score data

c
  • specifies the cutoff point, set to NULL if the binning of the data should be independent from c

binsize
  • length of the interval that is one bin