inst/doc/FLLat_tutorial.R

### R code from vignette source 'FLLat_tutorial.rnw'

###################################################
### code chunk number 1: FLLat_tutorial.rnw:110-114
###################################################
library(FLLat)
data(simaCGH)
result.pve <- FLLat.PVE(simaCGH,J.seq=1:(ncol(simaCGH)/2))
plot(result.pve)


###################################################
### code chunk number 2: FLLat_tutorial.rnw:139-142
###################################################
result.bic <- FLLat.BIC(simaCGH,J=5)
result.bic$lam1
result.bic$lam2


###################################################
### code chunk number 3: FLLat_tutorial.rnw:153-154
###################################################
plot(result.bic$opt.FLLat)


###################################################
### code chunk number 4: FLLat_tutorial.rnw:164-165
###################################################
plot(result.bic$opt.FLLat,type="weights")


###################################################
### code chunk number 5: FLLat_tutorial.rnw:227-231
###################################################
set.seed(1364)
result.fdr <- FLLat.FDR(simaCGH,result.bic$opt.FLLat)
result.fdr$thresh.control
plot(result.fdr)


###################################################
### code chunk number 6: FLLat_tutorial.rnw:268-274
###################################################
tr.dat <- simaCGH[,1:15]
tst.dat <- simaCGH[,16:20]
result.tr <- FLLat(tr.dat,J=5,lam1=1,lam2=9)
tst.pred <- predict(result.tr,newY=tst.dat)
plot(tst.dat[,1],xlab="Probe",ylab="Y")
lines(tst.pred$pred.Y[,1],col="red",lwd=3)

Try the FLLat package in your browser

Any scripts or data that you put into this service are public.

FLLat documentation built on May 2, 2019, 4:51 a.m.