View source: R/Regression_Functions.R
distreg.asymp | R Documentation |
distreg.asymp
takes input object from dr_asympar
for asymptotic bayesian distribution.
distreg.asymp(ind, drabj, data, vcovfn = "vcov", ...)
ind |
index of object in list |
drabj |
object from |
data |
dataframe, first column is the outcome |
vcovfn |
a string denoting the function to extract the variance-covariance. Defaults at "vcov". Other variance-covariance estimators in the sandwich package are usable. |
... |
additional input to pass to |
a mean Fhat
and a variance varF
y = faithful$waiting
x = scale(cbind(faithful$eruptions,faithful$eruptions^2))
qtaus = quantile(y,c(0.05,0.25,0.5,0.75,0.95))
drabj<- dr_asympar(y=y,x=x,thresh = qtaus); data = data.frame(y,x)
(asymp.obj<- distreg.asymp(ind=2,drabj,data,vcovfn="vcov"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.