Description Usage Arguments Examples
Estimate a partially linear model using the robinson 1988 methodology using random forests as the nonparametric regression technology. The formula structure has three parts: y ~ x | z. y is the outcome, x are the linear variables and z are the non-parametric variables. Tt *should* work with whatever transformations you throw at it, but note that the resulting lm object it returns may have column names that are slightly different if you do transformations. For example, the variables in the output of a model drilled ~ Auction + log(acres) | Cent_Lat + Cent_Long + EffDate will be Auction and *log_acres_*. ALSO: if you put something more complicated in, like, say, a call to bs() from the splines package, you are going to get pretty crazy names, but it should still work.
1 | rf_semipar(formula, data, ...)
|
formula |
The regression formula to evaluate |
data |
The dataframe that contains all the variables used in the formula |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.