View source: R/estimator_plans.R
est_params | R Documentation |
Estimate parameters on the data.
est_params(obj, y, d = NULL, X, sample = "est", ret_var = FALSE) ## S3 method for class 'lm_est' est_params(obj, y, d = NULL, X, sample = "est", ret_var = FALSE) ## S3 method for class 'simple_est' est_params(obj, y, d = NULL, X, sample = "est", ret_var = FALSE) ## S3 method for class 'grid_rf' est_params(obj, y, d = NULL, X, sample = "est", ret_var = FALSE)
obj |
an EstimatorPlan object |
y |
A N-vector |
d |
A N-vector or NxM matrix (so that they can be estimated jointly) |
X |
A NxK matrix or data.frame |
sample |
One of: "trtr", "trcv", "est" |
ret_var |
Return Variance in the return list |
list(param_est=...)
or list(param_est=...)
if ret_var
lm_est
: lm_est
simple_est
: simple_est
grid_rf
: grid_rf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.