Skip to main content

logistic_regression R Code

R

#Load library and data

library(ChannelAttributionPro)

data(PathData)

password="yourpassword"

#Perform transaction level attribution reading data from a data.frame

res=logistic_regression(Data=Data, var_path="path", var_conv="total_conversions",
var_null="total_null", var_value=NULL, row_sep=",",cha_sep=">",
flg_write_nulls=FALSE, flg_write_paths=FALSE, file_output=NULL,
verbose=TRUE,server="app.channelattribution.io",password=password)

path_attribution=res$attribution
print(path_attribution,max=100)