Commit 79577688 authored by Jean-Marie Lepioufle's avatar Jean-Marie Lepioufle
Browse files

typo

parent a794b05b
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
#' } #' }
# #
gen_error <- function(dataset,target,predictors,FUN_fit,FUN_predict,error_type=c("r","or","sor","isor"),par=list( gen_error <- function(dataset,target,predictors,FUN_fit,FUN_predict,error_type=c("r","or","sor","isor"),par=list(
phi_f1 = list(4.35/100/1.96), phi_f1 = 4.35/100/1.96,
phi_g1 = list(4.35/100/1.96), phi_g1 = 4.35/100/1.96,
phi_h1 = list(0.1), phi_h1 = 0.1,
beta_r = list(1), beta_r = 1,
sig_r = list(1)), sig_r = 1),
seed=NULL) { seed=NULL) {
set.seed(seed) # for reproducibility set.seed(seed) # for reproducibility
......
...@@ -7,9 +7,8 @@ gen_error} ...@@ -7,9 +7,8 @@ gen_error}
\usage{ \usage{
gen_error(dataset, target, predictors, FUN_fit, FUN_predict, gen_error(dataset, target, predictors, FUN_fit, FUN_predict,
error_type = c("r", "or", "sor", "isor"), par = list(phi_f1 = error_type = c("r", "or", "sor", "isor"), par = list(phi_f1 =
list(mean = 5.64/1.96, sd = 10), phi_g1 = list(mean = 5.64/1.96, sd = 4.35/100/1.96, phi_g1 = 4.35/100/1.96, phi_h1 = 0.1, beta_r = 1, sig_r =
10), phi_h1 = list(mean = 0.1, sd = 0.1), beta_r = list(mean = 1, sd = 1), seed = NULL)
2), sig_r = list(df = 1, scale = 0.2)))
} }
\arguments{ \arguments{
\item{dataset}{data.frame} \item{dataset}{data.frame}
...@@ -25,6 +24,8 @@ gen_error(dataset, target, predictors, FUN_fit, FUN_predict, ...@@ -25,6 +24,8 @@ gen_error(dataset, target, predictors, FUN_fit, FUN_predict,
\item{error_type}{chosen error type 'r','s','sr','or','sor','isor'} \item{error_type}{chosen error type 'r','s','sr','or','sor','isor'}
\item{par}{parameters of the input, output, structure, and remnant errors} \item{par}{parameters of the input, output, structure, and remnant errors}
\item{seed}{seed for reproducibility}
} }
\description{ \description{
gen_error gen_error
......
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