Skip to content

compute_quantiles_obs_df

Description

returns a dataframe of quantiles of concentrations and deltaQTcs

Usage

compute_quantiles_obs_df(
data,
xdata_col,
ydata_col,
conf_int = 0.9,
nbins = 10,
type = 2
)

Arguments

NameDescription
dataa dataframe of QTc Dataset
xdata_colan unquoted column name of concentration measurements
ydata_colan unquoted column name of deltaQTc measurements
conf_intconfidence level, default = 0.9
nbinsinteger number of bins to break independent variable into - OR - a user specified vector for non-uniform binning
typealgorithm for quantile. Default (2), is SAS quantile algorithm

Returns

a tibble of conc, deltaQTC quantiles

Examples

data <- preprocess(data)
compute_quantiles_obs_df(data, CONC, deltaQTCF)
compute_quantiles_obs_df.R
# A tibble: 10 × 11
decile xdata meany SD N SE low_y high_y med_y low_p_y high_p_y
<fct> <dbl> <dbl> <dbl> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 [0,1.50 -7.71 9.84 329 0.542 -8.61 -6.82 -7.07 -24.2 7.72
2 (1.55,… 3.87 -7.36 9.76 34 1.67 -10.2 -4.53 -8.68 -21.3 7.77
3 (4.9,18.11 -8.78 11.2 35 1.89 -12.0 -5.58 -8.42 -30.7 7.11
4 (10.4,… 13.3 -2.96 11.0 35 1.87 -6.12 0.190 -1.47 -22.2 14.3
5 (18.1,… 23.5 -6.90 12.1 35 2.04 -10.3 -3.45 -6.61 -31.6 14.6
6 (27.2,… 34 -4.66 11.5 35 1.95 -7.95 -1.37 -0.855 -23.0 11.6
7 (40.4,… 49.4 -4.83 9.63 35 1.63 -7.59 -2.08 -4.33 -18.9 11.4
8 (56.9,… 66.5 -2.32 7.60 35 1.28 -4.49 -0.143 -1.65 -16.9 11.5
9 (73.9,… 87.5 -2.67 8.68 35 1.47 -5.15 -0.190 -1.98 -20.2 13.3
10 (108,3153 -0.245 9.16 35 1.55 -2.86 2.37 1.96 -15.0 19.0