Learn R Programming

simex (version 1.0)

refit: Changing the fitting method

Description

Refits the object of class SIMEX or MCSIMEX with a different extrapolation function and returns an object of the same class with the new estimates.

Usage

refit(object, fitting.method = "quad", asymptotic = TRUE, jackknife = "quad")

Arguments

object
object of class SIMEX or MCSIMEX
fitting.method
the new fitting method for for the extrapolation step
asymptotic
logical, indicating whether asymptotic variance estimation should be done. (Only possible if done in the original model)
jackknife
specifying the extrapolation method for jackknife variance estimation. Can be set to FALSE if it should not be performed (Only possible if done in the original model)

Value

  • object of class SIMEX or MCSIMEX

See Also

simex,mcsimex

Examples

Run this code
# continues example from mcsimex()
 # refit(simex.model,"line")

Run the code above in your browser using DataLab