Return a list of options for an ABfit analysis.

abfit_opts(
init_damping = 5,
maxiters = 1024,
max_shift = 0.078,
max_damping = 15,
max_phase = 360,
lambda = NULL,
ppm_left = 4,
ppm_right = 0.2,
zp = TRUE,
bl_ed_pppm = 2,
auto_bl_flex = TRUE,
bl_comps_pppm = 15,
export_sp_fit = FALSE,
max_asym = 0.25,
max_basis_shift = 0.0078,
max_basis_damping = 2,
maxiters_pre = 1000,
min_bl_ed_pppm = NULL,
max_bl_ed_pppm = 7,
auto_bl_flex_n = 20,
pre_fit_bl_ed_pppm = 1,
remove_lip_mm_prefit = FALSE,
pre_align = TRUE,
max_pre_align_shift = 0.1,
pre_align_ref_freqs = c(2.01, 3.03, 3.22),
noise_region = c(-0.5, -2.5),
optimal_smooth_criterion = "maic",
aic_smoothing_factor = 5,
anal_jac = TRUE,
pre_fit_ppm_left = 4,
pre_fit_ppm_right = 1.8,
phi1_optim = FALSE,
phi1_init = 0,
max_dphi1 = 0.2,
ahat_calc_method = "lh_pnnls",
prefit_phase_search = TRUE,
freq_reg = NULL,
output_all_paras = FALSE
)

## Arguments

init_damping initial value of the Gaussian global damping parameter (Hz). Very poorly shimmed or high field data may benefit from a larger value. The maximum number of iterations to run for the detailed fit. The maximum allowable shift to be applied in the optimisation phase of fitting (ppm). maximum permitted value of the global damping parameter (Hz). the maximum absolute permitted value of the global zero-order phase term (degrees). Note, the prefit_phase_search option is not constrained by this term. manually set the the baseline smoothness parameter. downfield frequency limit for the fitting range (ppm). upfield frequency limit for the fitting range (ppm). zero pad the data to twice the original length before fitting. manually set the the baseline smoothness parameter (ED per ppm). automatically determine the level of baseline smoothness. spline basis density (signals per ppm). add the fitted spline functions to the fit result. maximum allowable value of the asymmetry parameter. maximum allowable frequency shift for individual basis signals (ppm). maximum allowable Lorentzian damping factor for individual basis signals (Hz). maximum iterations for the coarse (pre-)fit. optimisation method for the coarse (pre-)fit. minimum value for the candidate baseline flexibility analyses (ED per ppm). minimum value for the candidate baseline flexibility analyses (ED per ppm). number of candidate baseline analyses to perform. level of baseline flexibility to use in the coarse fitting stage of the algorithm (ED per ppm). remove broad signals in the coarse fitting stage of the algorithm. perform a pre-alignment step before coarse fitting. maximum allowable shift in the pre-alignment step (ppm). a vector of prominent spectral frequencies used in the pre-alignment step (ppm). spectral region to estimate the noise level (ppm). method to determine the optimal smoothness. modification factor for the AIC calculation. use a analytical approximation to the jacobian in the detailed fitting stage. downfield frequency limit for the fitting range in the coarse fitting stage of the algorithm (ppm). upfield frequency limit for the fitting range in the coarse fitting stage of the algorithm (ppm). apply and optimise a frequency dependant phase term. initial value for the frequency dependant phase term (ms). maximum allowable change from the initial frequency dependant phase term (ms). maximum allowable shift for broad signals in the basis (ppm). Determined based on their name beginning with Lip or MM. maximum allowable Lorentzian damping for broad signals in the basis (Hz). Determined based on their name beginning with Lip or MM. method to calculate the metabolite amplitudes. May be one of: "lh_pnnls" or "ls". perform a 1D search for the optimal phase in the prefit stage of the algorithm. frequency shift parameter. include more fitting parameters in the fit table, e.g. individual shift and damping factors for each basis set element.

## Value

full list of options.

## Examples

opts <- abfit_opts(ppm_left = 4.2, noise_region = c(-1, -3))