Description Usage Arguments Details Value
This is an internal function that provides the range where the profileLikelihood function would search for MLE.
1 | getGridBound(formula,data,bse,k,m,family,robust)
|
formula |
a formula specifying the response and possible covariates to keep in the output dataframe. This is directly obtained from |
data |
a data frame inputted from the output of |
bse |
numeric. The number of beta standard errors to utilize in constraining the beta grid limits. Passed down from argument |
k |
numeric vector. The strength of evidence criterion k. Passed down from argument |
m |
numeric. The density of the grid at which to compute the standardized likelihood function. Passed down from argument |
family |
a string representing the link function for |
robust |
A numeric value, robust correction factor. |
getGridBound
is an interior function that searches for the proper grid range that would be used to search for MLE. This is done through two steps: First, it finds a starting grid range by fitting a (generalized) linear model to obtain the estimate and s.e. of the beta. Then the starting grid range can be defined as mean +- bse*s.e. . In the case where robust correction is needed, the grid will be defined as mean +- bse*s.e./correction factor. Then the function determines an optimal grid range by using expandBound
function.
This function returns a numeric vector of length 2 that represents the lower and upper bounds of the grid for the MLE search.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.