brentonk / polywog Goto Github PK
View Code? Open in Web Editor NEWR package for flexible functional form estimation via oracle-penalized basis regression
R package for flexible functional form estimation via oracle-penalized basis regression
Since the functionality has changed, the documentation should reflect that (and cite Hanmer and Kalkan)
.parallel
appears to be ignored in cv.polywog.r
. perhaps related to this is the difficulty in using keyboard interrupt to stop execution of polywog
(basically I have to kill R every time).
Hi,
I've tried running cv.polywog but I can't figure out what is causing this error.
My data are just a dataframe
I run:
cv.polywog(y_dat~x_dat, data=forpoly, degrees.cv = 1:10, nfolds = 5)
and the error I get is:
Error in { :
task 1 failed - "x should be a matrix with 2 or more columns"
I tried inputing my data as a matrix instead, but then got an error that my data should be a dataframe. Any assistance resolving this would be great! Thanks!
Julie
A "preplot.polywog"
object is just a reclassed predVals()
return, so eliminate it and have the plotting methods deploy right onto predVals()
output.
To fix the build warning
These packages needs to imported from for the case
when this namespace is loaded but not attached.
Since we're no longer explicitly constructing the model matrix, it isn't possible to exclude terms from the penalty according to their names in the model matrix. That leaves us with a few natural ways to implement unpenalized
:
polyTerms
to leave unpenalized. Then we are fully general, but some problems arise:
polyTerms
to know which rows are which, meaning running polywog(..., method = "none")
once before fittingprint
and summary
methods tell which terms were unpenalized, but it still seems risky.polyTerms
after it is computed, then checking those against the supplied character vector unpenalized
Can also remove ...
argument from predVals()
once this is done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.