loglikTVRhoCond: Convert a factor to numeric

View source: R/sdsr.r

loglikTVRhoCondR Documentation

Convert a factor to numeric

Description

Convert a factor with numeric levels to a non-factor

Usage

loglikTVRhoCond(
  Y,
  w,
  omegaRho = 0,
  aRho = 0.01,
  bRho = 0.8,
  f1Rho = atanh(0.4),
  density = "normal",
  result = "loglik"
)

Arguments

x

A vector containing a factor with numeric levels

Value

The input factor made a numeric vector

Examples

x <- factor(c(3, 4, 9, 4, 9), levels=c(3,4,9))
fac2num(x)


benjaminpeeters/TVSR documentation built on July 7, 2022, 5:45 p.m.