plotProfLikDiffTrueTies: Plot profile likelihood for the difference between two...

Description Usage Arguments Details Value See Also

View source: R/profLikCI.R

Description

Find the profile likelihood for a specific parameter in an OADA with trueTies

Usage

1
2
3
plotProfLikDiffTrueTies(which, whichBaseline, model, range,
  constraintsVect = NULL, resolution = 20, inflation = 1,
  conf = 0.95, startValue = NULL, lower = NULL, upper = NULL)

Arguments

which

numeric giving the first parameter for which the profile likelihood is to be plotted. The appropriate number can be identified from the fitted model, by entering <modelName>@varNames to extract the variable names from the model. Each variable name is preceded by its number.

whichBaseline

numeric giving the second parameter for which the profile likelihood is to be plotted. The profile likelihood is plotted for which - whichBaseline.

model

object of class oadaFit.

range

numeric vector of length two, providing a range of parameter values within which the profile likelihood is to be plotted.

resolution

numeric giving the number of points to be plotted. The user is advised to start at a low resolution to obtain the approproate range, then increase resolution to identify ranges for endpoints.

inflation

numerical to be used if the confidence intervals are to be inflated by a specified amount, as suggested by Burnham & Anderson (2000) to allow for model selection uncertainty. This simply increases the height of the dotted line above the model maximum likelihood by a factor of inflation.

conf

numerical giving the level of confidence required, defaulting to the traditional 0.95.

lower

optional numeric vector giving lower values for the maximum likelihood optimization. Length to match the number of parameters fitted in the model. By default taken to be 0 for all s parameters and -Inf for coefficients of ILVs.

upper

optional numeric vector giving upper values for the maximum likelihood optimization. Length to match the number of parameters fitted in the model. By default taken to be Inf for all parameters.

Details

An alternative simple plotting function to plot profile likelihoods, intended for data with trueTies, only works for social models. Functions in much the same way as plotProfLik.

Value

A dataframe giving the plotted values.

See Also

plotProfLik


whoppitt/NBDA documentation built on April 25, 2021, 7:55 a.m.