# There is a preloaded quarterly dataset called 'dailytrades' with 60
# observations. Each observation corresponds to a day and contains the
# total number of buyer-initiated trades ('B') and seller-initiated
# trades ('S') on that day. To know more, type ?dailytrades
xdata <- dailytrades
# We show the output of the function pin_ea() using the default values
# of display digits. We then change these values using the function
# set_display_digits(), before displaying the same estimate.pin object
# again to see the difference.
model <- pin_ea(xdata, verbose = FALSE)
show(model)
# Change the number of digits for d1 to 3, of d2 to 0 and of d3 to 2
set_display_digits(list(3, 0, 2))
# No need to run the function mpin_ml() again to update the display of an
# estimate.mpin object.This holds for all estimate* S4 objects.
show(model)
Run the code above in your browser using DataLab