Description Usage Arguments Value Note
2 major differences being that the knockoff variables are to be passed directly to the function, not made inside of it; and secondly you can pass the amount of cores wanted directly to the statistic function chosen. Be careful as this may need to be 'NULL'-ed if the statistic function you choose does not allow for multi-cores.
1 |
resp |
The response variable, a matrix the same length as expl The first col must be the identifier |
expl |
The data frame to be the explanatory variables, the first col must be the identifier |
Xko |
The knockoff variables created seperately (see the 'knockoff' package for more details). Also must be the same length as expl, resp. |
offset |
The offset is used to control conservative-ness. 0 for liberal and best for smaller data sets, 1 for conservative and larger data sets. 1 can be a very poor choice if you do not have many, many explanatory variables. Passed to the my_kn function. |
fdr |
The "False Discovery Rate", allowed to be between 0,1 (non-inclusive). Defaults to .2, implying that 1/5 of variables returned will be a type 1 error. This will be passed to the my_kn function. |
cores |
The cores to be used in the doMC section of the code, passed to the my_kn function. |
... |
Various other arguments to be passed to the my_kn function. |
This will return of data frame 5 columns.
Resp: What ever response variable was being tested
Expl: Gives the name of the signficant explanatory variable chosen
Est: Estimate of the glm model, defaults to normal
se: Gives the standard error of the parameter estimate from the glm
p-value: Gives the p-value associated with that variable estimate from the glm for the null hypothesis the effect magnitude is 0.
Cores will be rounded to be a natural number
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.