penaltyUpdate: Update the penalty term

Description Usage Arguments Examples

Description

Update the penalty term of a lvm.penalty object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
penalty(x, ...) <- value

## S3 replacement method for class 'plvm'
penalty(x, nuclear = FALSE, ...) <- value

## S3 replacement method for class 'penaltyL12'
penalty(x, type, lambda, add, ...) <- value

## S3 replacement method for class 'penaltyNuclear'
penalty(x, type = "link", ...) <- value

Arguments

x

a lvm.penalty object

nuclear

should informations be extracted for the nuclear penalty

value

the value to be attributed

type

the type of penalty information to be updated

Examples

1
2
3
4
5
6
7
8
set.seed(10)
n <- 300
formula.lvm <- as.formula(paste0("Y~",paste(paste0("X",1:12), collapse = "+")))
mSim <- lvm(formula.lvm)
df.data <- sim(mSim,n)

pm <- penalize(mSim, c("Y~X1","Y~X4", "Y~X10"))
pm

bozenne/lava.penalty documentation built on May 13, 2019, 1:41 a.m.