Description Usage Arguments Value Examples
View source: R/pcls2_bias_variance_MSE.R
Calculate the bias, the variance and the MSE of each component of the estimator of beta in the positively constrained least squares problem with 2 explanatory variables.
1 | pcls2_bias_variance_MSE(X, beta = c(0, 1), sigma = 1)
|
X |
a dataframe containing the explanatory variables (2 columns) |
beta |
parameter vector |
sigma |
standard deviation of the Gaussian noise |
a dataframe containing the bias, the variance and the MSE of each component of the estimator of beta
1 | results <- pcls2_bias_variance_MSE(X = data.frame(runif(3), runif(3)), beta = c(1,0.5), sigma = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.