Learn R Programming

SentimentAnalysis (version 1.3-4)

spikeslabEstimation: Spike-and-slab estimation

Description

Function estimates coefficients based on spike-and-slab regression.

Usage

spikeslabEstimation(
  x,
  response,
  control = list(n.iter1 = 500, n.iter2 = 500),
  ...
)

Value

Result is a list with coefficients, coefficient names and the model intercept.

Arguments

x

An object of type DocumentTermMatrix.

response

Response variable including the given gold standard.

control

(optional) A list of parameters defining the LASSO model. Default isn.iter1=500 and n.iter2=500. See spikeslab for details.

...

Additional parameters passed to function for spikeslab.