spikeslabEstimation: Spike-and-slab estimation

View source: R/modelEstimation.R

spikeslabEstimationR Documentation

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),
  ...
)

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.

Value

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


SentimentAnalysis documentation built on Aug. 24, 2023, 1:07 a.m.