Commit 60f224c0 authored by Armin Rauschenberger's avatar Armin Rauschenberger

vignette

parent b8702542
pkgs <- c("devtools","missRanger","mice","mvtnorm","glmnet","earth","spls","MTPS","RMTL","MultivariateRandomForest","mcen","remMap","SiER","GPM","MRCE","MLPUGS","benchmarkme")
install.packages(pkgs)
knitr::opts_chunk$set(echo=TRUE,eval=FALSE)
setwd("C:/Users/armin.rauschenberger/Desktop/joinet")
##############
### joinet ###
##############
#--- generate toydata ----------------------------------------------------------
set.seed(1)
#toydata <- NULL
#save(toydata,file=file.path("C:/Users/armin.rauschenberger/Desktop/package/cornet/data/toydata.R"))
#--- compile package -----------------------------------------------------------
rm(list=ls())
name <- "joinet"
#load("D:/cornet/package/toydata.RData")
pkg <- "C:/Users/armin.rauschenberger/Desktop/joinet/joinet"
setwd(dir=pkg)
devtools::as.package(x=pkg,create=FALSE)
devtools::load_all(path=pkg)
#usethis::use_data(toydata,overwrite=TRUE)
devtools::document(pkg=pkg)
unlink(file.path(pkg,"vignettes","figure"),recursive=TRUE)
setwd(dir=pkg)
unlink(file.path(pkg,"docs"),recursive=TRUE)
pkgdown::build_site(pkg=pkg)
file.remove(file.path(pkg,".Rhistory"))
#file.remove(file.path(pkg,c(".Rbuildignore",".Rhistory")))
#usethis::use_build_ignore(files=c("Readme.Rmd",".travis.yml","_pkgdown.yml","docs","cran-comments.md","appveyor.yml",".Rhistory"))
devtools::check(pkg=pkg,quiet=FALSE,manual=TRUE)
devtools::install(pkg=pkg,upgrade=FALSE)
#--- data simulation ---
n <- 50; p <- 100; q <- 3
X <- matrix(rnorm(n*p),nrow=n,ncol=p)
Y <- replicate(n=q,expr=rnorm(n=n,mean=rowSums(X[,1:5])))
# n samples, p inputs, q outputs
#--- model fitting ---
object <- joinet(Y=Y,X=X)
# slot "base": univariate
# slot "meta": multivariate
#--- make predictions ---
y_hat <- predict(object,newx=X)
# n x q matrix "base": univariate
# n x q matrix "meta": multivariate
#--- extract coefficients ---
coef <- coef(object)
# effects of inputs on outputs
# q vector "alpha": intercepts
# p x q matrix "beta": slopes
#--- model comparison ---
loss <- cv.joinet(Y=Y,X=X)
source('C:/Users/armin.rauschenberger/Desktop/joinet/joinet/R/pkgname.R')
set.seed(1)
#toydata <- NULL
#save(toydata,file=file.path("C:/Users/armin.rauschenberger/Desktop/package/cornet/data/toydata.R"))
#--- compile package -----------------------------------------------------------
rm(list=ls())
name <- "joinet"
#load("D:/cornet/package/toydata.RData")
pkg <- "C:/Users/armin.rauschenberger/Desktop/joinet/joinet"
setwd(dir=pkg)
devtools::as.package(x=pkg,create=FALSE)
devtools::load_all(path=pkg)
#usethis::use_data(toydata,overwrite=TRUE)
devtools::document(pkg=pkg)
unlink(file.path(pkg,"vignettes","figure"),recursive=TRUE)
setwd(dir=pkg)
unlink(file.path(pkg,"docs"),recursive=TRUE)
pkgdown::build_site(pkg=pkg)
file.remove(file.path(pkg,".Rhistory"))
#file.remove(file.path(pkg,c(".Rbuildignore",".Rhistory")))
#usethis::use_build_ignore(files=c("Readme.Rmd",".travis.yml","_pkgdown.yml","docs","cran-comments.md","appveyor.yml",".Rhistory"))
devtools::check(pkg=pkg,quiet=FALSE,manual=TRUE)
devtools::install(pkg=pkg,upgrade=FALSE)
setwd(pkg)
system("git remote set-url origin https://rauschenberger:Juncker1419@github.com/rauschenberger/joinet.git")
system("git remote -v")
system("git add --all")
system("git commit -m \"vignette\"")
system("git push origin master") # GitHub
...@@ -20,6 +20,8 @@ navbar: ...@@ -20,6 +20,8 @@ navbar:
href: articles/joinet.html href: articles/joinet.html
- text: "article" - text: "article"
href: articles/article.html href: articles/article.html
- text: "script"
href: articles/script.html
- text: "news" - text: "news"
href: news/index.html href: news/index.html
right: right:
......
...@@ -86,6 +86,9 @@ ...@@ -86,6 +86,9 @@
<li> <li>
<a href="articles/article.html">article</a> <a href="articles/article.html">article</a>
</li> </li>
<li>
<a href="articles/script.html">script</a>
</li>
<li> <li>
<a href="news/index.html">news</a> <a href="news/index.html">news</a>
</li> </li>
......
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -86,6 +86,9 @@ ...@@ -86,6 +86,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
...@@ -128,6 +131,8 @@ ...@@ -128,6 +131,8 @@
<dd></dt> <dd></dt>
<dt><a href="joinet.html">Multivariate Elastic Net Regression</a></dt> <dt><a href="joinet.html">Multivariate Elastic Net Regression</a></dt>
<dd></dt> <dd></dt>
<dt><a href="script.html">Multivariate Elastic Net Regression</a></dt>
<dd></dt>
</dl> </dl>
</div> </div>
</div> </div>
......
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -86,6 +86,9 @@ ...@@ -86,6 +86,9 @@
<li> <li>
<a href="articles/article.html">article</a> <a href="articles/article.html">article</a>
</li> </li>
<li>
<a href="articles/script.html">script</a>
</li>
<li> <li>
<a href="news/index.html">news</a> <a href="news/index.html">news</a>
</li> </li>
......
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
<li> <li>
<a href="articles/article.html">article</a> <a href="articles/article.html">article</a>
</li> </li>
<li>
<a href="articles/script.html">script</a>
</li>
<li> <li>
<a href="news/index.html">news</a> <a href="news/index.html">news</a>
</li> </li>
......
...@@ -86,6 +86,9 @@ ...@@ -86,6 +86,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -4,5 +4,6 @@ pkgdown_sha: ~ ...@@ -4,5 +4,6 @@ pkgdown_sha: ~
articles: articles:
article: article.html article: article.html
joinet: joinet.html joinet: joinet.html
last_built: 2020-11-23T12:29Z script: script.html
last_built: 2020-12-01T08:42Z
...@@ -89,6 +89,9 @@ the coefficients from the base learners.)" /> ...@@ -89,6 +89,9 @@ the coefficients from the base learners.)" />
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -87,6 +87,9 @@ ...@@ -87,6 +87,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -86,6 +86,9 @@ ...@@ -86,6 +86,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -92,6 +92,9 @@ in high-dimensional settings." /> ...@@ -92,6 +92,9 @@ in high-dimensional settings." />
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -87,6 +87,9 @@ ...@@ -87,6 +87,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -87,6 +87,9 @@ ...@@ -87,6 +87,9 @@
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
...@@ -88,6 +88,9 @@ i.e. the weights for the base learners." /> ...@@ -88,6 +88,9 @@ i.e. the weights for the base learners." />
<li> <li>
<a href="../articles/article.html">article</a> <a href="../articles/article.html">article</a>
</li> </li>
<li>
<a href="../articles/script.html">script</a>
</li>
<li> <li>
<a href="../news/index.html">news</a> <a href="../news/index.html">news</a>
</li> </li>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment