fff(link="loge", earg=list(), idf1=NULL, idf2=NULL, nsimEIM=100,
imethod=1, zero=NULL)
Links
for more choices.
The default keeps the parameters positive.earg
in Links
for general information.CommonVGAMffArguments
for more information.idf1
and idf2
."vglmff"
(see vglmff-class
).
The object is used by modelling functions such as vglm
and vgam
.df1
and df2
here.
This function treats these degrees of freedom as positive reals
rather than integers.
The mean of the distribution is
$df2/(df2-2)$ provided $df2>2$,
and its variance is
$2 df2^2 (df1+df2-2)/(df1 (df2-2)^2 (df2-4))$ provided $df2>4$.
The estimated mean is returned as the fitted values.
Although the F distribution can be defined to accommodate a
non-centrality parameter ncp
, it is assumed zero here.
Actually it shouldn't be too difficult to handle any known ncp
; something
to do in the short future.FDist
.x = runif(n <- 2000)
df1 = exp(2+0.5*x)
df2 = exp(2-0.5*x)
y = rf(n, df1, df2)
fit = vglm(y ~ x, fff, trace=TRUE)
coef(fit, matrix=TRUE)
Run the code above in your browser using DataLab