R Under development (unstable) (2024-02-28 r85999 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(lpcde) > > test_check("lpcde") Call: lpbwcde Sample size 100 Number of grid points 19 Polynomial order for Y point estimation (p=) 2 Polynomial order for X point estimation (q=) 1 Order of derivative estimated for Y (mu=) 1 Order of derivative estimated for X (nu=) 0 Kernel function epanechnikov Bandwidth method imse-rot Use summary(...) to show bandwidths. Call: lpbwcde Sample size 100 Polynomial order for Y point estimation (p=) 2 Polynomial order for X point estimation (q=) 1 Density function estimated (mu=) 1 Order of derivative estimated for covariates (nu=) 0 Kernel function epanechnikov Bandwidth method imse-rot ================================== Index y_grid B.W. Eff.n ================================== 1 -1.4358 1.6983 63 2 -1.2868 1.6983 66 3 -1.1377 1.6983 69 4 -0.9887 1.6983 73 5 -0.8397 1.6983 76 ---------------------------------- 6 -0.6906 1.6983 79 7 -0.5416 1.6983 80 8 -0.3926 1.6983 83 9 -0.2435 1.6983 86 10 -0.0945 1.6983 86 ---------------------------------- 11 0.0545 1.6983 83 12 0.2036 1.6983 83 13 0.3526 1.6983 81 14 0.5016 1.6983 80 15 0.6507 1.6983 74 ---------------------------------- 16 0.7997 1.6983 72 17 0.9487 1.6983 71 18 1.0978 1.6983 68 19 1.2468 1.6983 57 ================================== Call: lpbwcde Sample size 100 Polynomial order for Y point estimation (p=) 2 Polynomial order for X point estimation (q=) 1 Density function estimated (mu=) 1 Order of derivative estimated for covariates (nu=) 0 Kernel function epanechnikov Bandwidth method imse-rot ================================== Index y_grid B.W. Eff.n ================================== 1 -1.2057 1.2620 35 2 -0.9482 1.2620 37 3 -0.5360 1.2620 43 4 -0.2240 1.2620 47 5 -0.0247 1.2620 50 ---------------------------------- 6 0.1705 1.2620 51 7 0.4533 1.2620 47 8 0.8878 1.2620 38 9 1.2624 1.2620 30 ================================== Call: lpbwcde Sample size 100 Number of grid points 9 Polynomial order for Y point estimation (p=) 3 Polynomial order for X point estimation (q=) 1 Order of derivative estimated for Y (mu=) 0 Order of derivative estimated for X (nu=) 0 Kernel function epanechnikov Bandwidth method imse-rot Use summary(...) to show bandwidths. Call: lpbwcde Sample size 100 Polynomial order for Y point estimation (p=) 3 Polynomial order for X point estimation (q=) 1 Distribution function estimated (mu=) 0 Order of derivative estimated for covariates (nu=) 0 Kernel function epanechnikov Bandwidth method imse-rot ================================== Index y_grid B.W. Eff.n ================================== 1 -1.2982 1.9021 71 2 -0.9020 1.9021 81 3 -0.4877 1.9021 88 4 -0.3706 1.9021 89 5 -0.0693 1.9021 90 ---------------------------------- 6 0.1065 1.9021 90 7 0.2193 1.9021 89 8 0.6006 1.9021 82 9 1.1273 1.9021 72 ================================== Call: lpcde Sample size 100 Number of grid points 9 Polynomial order for Y point estimation (p=) 2 Polynomial order for X point estimation (q=) 1 Order of derivative estimated for Y (mu=) 1 Order of derivative estimated for X (nu=) 0 Kernel function epanechnikov Bandwidth method Use summary(...) to show estimates. Call: lpcde Sample size 100 Polynomial order for Y point estimation (p=) 2 Polynomial order for X point estimation (q=) 1 Density function estimated (mu=) 1 Order of derivative estimated for covariates (nu=) 0 Kernel function epanechnikov Bandwidth method ============================================================================= Point Std. Robust B.C. Index Grid B.W. Eff.n Est. Error [ Unif. 95% C.I. ] ============================================================================= 1 -1.2982 1.8000 67 0.1791 0.0255 0.0958 , 0.3160 2 -0.9020 1.8000 78 0.2635 0.0154 0.2113 , 0.3763 3 -0.4877 1.8000 83 0.3230 0.0104 0.2837 , 0.4466 4 -0.3706 1.8000 88 0.3316 0.0097 0.2994 , 0.4577 5 -0.0693 1.8000 90 0.3389 0.0082 0.3201 , 0.4633 ----------------------------------------------------------------------------- 6 0.1065 1.8000 88 0.3384 0.0079 0.3192 , 0.4561 7 0.2193 1.8000 87 0.3353 0.0079 0.3126 , 0.4462 8 0.6006 1.8000 82 0.2995 0.0072 0.2671 , 0.3757 9 1.1273 1.8000 72 0.2073 0.0098 0.1464 , 0.2685 ============================================================================= Call: lpcde Sample size 100 Polynomial order for Y point estimation (p=) 3 Polynomial order for X point estimation (q=) 1 Distribution function estimated (mu=) 0 Order of derivative estimated for covariates (nu=) 0 Kernel function epanechnikov Bandwidth method ============================================================================= Point Std. Robust B.C. Index Grid B.W. Eff.n Est. Error [ 95% C.I. ] ============================================================================= 1 -1.2982 1.9021 70 0.1354 0.0049 -12.9367 , 13.2157 2 -0.9020 1.9021 78 0.2221 0.0019 -9.6379 , 10.0933 3 -0.4877 1.9021 86 0.3472 0.0012 -7.4029 , 8.1113 4 -0.3706 1.9021 89 0.3824 0.0013 -6.8570 , 7.6428 5 -0.0693 1.9021 90 0.4967 0.0019 -6.0583 , 7.0890 ----------------------------------------------------------------------------- 6 0.1065 1.9021 90 0.5597 0.0014 -5.4856 , 6.6449 7 0.2193 1.9021 90 0.5920 0.0014 -5.0993 , 6.3046 8 0.6006 1.9021 84 0.7053 0.0016 -5.5056 , 6.9441 9 1.1273 1.9021 72 0.8324 0.0022 -7.3209 , 8.9961 ============================================================================= Call: lpcde Sample size 100 Polynomial order for Y point estimation (p=) 2 Polynomial order for X point estimation (q=) 1 Density function estimated (mu=) 1 Order of derivative estimated for covariates (nu=) 0 Kernel function epanechnikov Bandwidth method ============================================================================= Point Std. Robust B.C. Index Grid B.W. Eff.n Est. Error [ Unif. 95% C.I. ] ============================================================================= 1 -1.2057 1.2490 31 0.2313 0.0410 -0.0793 , 0.9852 2 -0.9482 1.2490 37 0.2819 0.0357 0.0363 , 1.0068 3 -0.5360 1.2490 42 0.3363 0.0326 0.0573 , 0.8290 4 -0.2240 1.2490 46 0.3334 0.0280 -0.0914 , 0.6845 5 -0.0247 1.2490 46 0.3223 0.0255 -0.1284 , 0.6136 ----------------------------------------------------------------------------- 6 0.1705 1.2490 49 0.3143 0.0248 -0.0905 , 0.5295 7 0.4533 1.2490 45 0.3027 0.0242 -0.0574 , 0.4650 8 0.8878 1.2490 36 0.3012 0.0589 -0.1135 , 0.5884 9 1.2624 1.2490 28 0.2480 0.0611 -0.2458 , 0.7429 ============================================================================= [ FAIL 0 | WARN 1 | SKIP 1 | PASS 43 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • empty test (1): 'test-lpcde.R:1:1' [ FAIL 0 | WARN 1 | SKIP 1 | PASS 43 ] > > proc.time() user system elapsed 25.82 0.96 26.79