Description Usage Arguments Details Author(s) See Also Examples
This function is designed to perform an IRLS algorithm to calculate parameters for regression on a given dataset (this will be designed to handle count data).
1 |
formula |
A formula of the equation that should be used for regression. |
data |
The data that should be used. Formula should use variable names as seen in the data. |
epsilon |
This is the criterion for convergence: set manually, for getting a feel for how it works |
maxit |
The maximum number of iterations you are willing to sit through before you blow your brains out... |
... |
Not currently supported. |
This is a practice function to see if I'm understanding the concepts (and if it actually runs). Documentation is provided purely for practice.
Michael Floren
1 2 3 4 5 6 7 8 9 | # using the "fish" dataset, downloaded with this package
# ztfish <- read.csv("http://www.ats.ucla.edu/stat/data/fish.csv") #if you want to grab it manually
# ztfish <- ztfish[ztfish$count>0,]
#an example with a two way interaction
zt_irls(count~persons*camper, ztfish)
#an example with a three way interaction
zt_irls(count~persons*camper*nofish, ztfish)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.