From 801e95f1cc7bfcc8480f6f49b9da2331be71d1a9 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 6 Jun 2018 02:10:37 +0200 Subject: Static documentation rebuilt by pkgdown::build_site() --- docs/authors.html | 28 ++++-- docs/docsearch.css | 148 ++++++++++++++++++++++++++++++++ docs/docsearch.js | 85 +++++++++++++++++++ docs/index.html | 33 ++++++-- docs/pkgdown.css | 50 +++++++++-- docs/pkgdown.js | 160 +++++++++++++++++++---------------- docs/pkgdown.yml | 5 ++ docs/reference/calplot.lm-1.png | Bin 69416 -> 73353 bytes docs/reference/calplot.lm.html | 32 +++++-- docs/reference/chemCal-package.html | 28 ++++-- docs/reference/din32645-1.png | Bin 66191 -> 71727 bytes docs/reference/din32645.html | 30 +++++-- docs/reference/index.html | 164 +++++++++++++++++++----------------- docs/reference/inverse.predict.html | 30 +++++-- docs/reference/lod.html | 32 +++++-- docs/reference/loq.html | 32 +++++-- docs/reference/massart97ex1.html | 28 ++++-- docs/reference/massart97ex3-1.png | Bin 51775 -> 54164 bytes docs/reference/massart97ex3.html | 30 +++++-- 19 files changed, 697 insertions(+), 218 deletions(-) create mode 100644 docs/docsearch.css create mode 100644 docs/docsearch.js create mode 100644 docs/pkgdown.yml (limited to 'docs') diff --git a/docs/authors.html b/docs/authors.html index 0f55a98..c9890cd 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -21,13 +21,19 @@ + + + - - - + + + + + + @@ -50,8 +56,12 @@ - chemCal + + chemCal + 0.1.37.9001 + + @@ -72,15 +83,15 @@ -
-
+
+
  • -

    Johannes Ranke. Author, maintainer, copyright holder. +

    Johannes Ranke. Author, maintainer, copyright holder.

@@ -102,5 +113,8 @@
+ + + diff --git a/docs/docsearch.css b/docs/docsearch.css new file mode 100644 index 0000000..e5f1fe1 --- /dev/null +++ b/docs/docsearch.css @@ -0,0 +1,148 @@ +/* Docsearch -------------------------------------------------------------- */ +/* + Source: https://github.com/algolia/docsearch/ + License: MIT +*/ + +.algolia-autocomplete { + display: block; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1 +} + +.algolia-autocomplete .ds-dropdown-menu { + width: 100%; + min-width: none; + max-width: none; + padding: .75rem 0; + background-color: #fff; + background-clip: padding-box; + border: 1px solid rgba(0, 0, 0, .1); + box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175); +} + +@media (min-width:768px) { + .algolia-autocomplete .ds-dropdown-menu { + width: 175% + } +} + +.algolia-autocomplete .ds-dropdown-menu::before { + display: none +} + +.algolia-autocomplete .ds-dropdown-menu [class^=ds-dataset-] { + padding: 0; + background-color: rgb(255,255,255); + border: 0; + max-height: 80vh; +} + +.algolia-autocomplete .ds-dropdown-menu .ds-suggestions { + margin-top: 0 +} + +.algolia-autocomplete .algolia-docsearch-suggestion { + padding: 0; + overflow: visible +} + +.algolia-autocomplete .algolia-docsearch-suggestion--category-header { + padding: .125rem 1rem; + margin-top: 0; + font-size: 1.3em; + font-weight: 500; + color: #00008B; + border-bottom: 0 +} + +.algolia-autocomplete .algolia-docsearch-suggestion--wrapper { + float: none; + padding-top: 0 +} + +.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column { + float: none; + width: auto; + padding: 0; + text-align: left +} + +.algolia-autocomplete .algolia-docsearch-suggestion--content { + float: none; + width: auto; + padding: 0 +} + +.algolia-autocomplete .algolia-docsearch-suggestion--content::before { + display: none +} + +.algolia-autocomplete .ds-suggestion:not(:first-child) .algolia-docsearch-suggestion--category-header { + padding-top: .75rem; + margin-top: .75rem; + border-top: 1px solid rgba(0, 0, 0, .1) +} + +.algolia-autocomplete .ds-suggestion .algolia-docsearch-suggestion--subcategory-column { + display: block; + padding: .1rem 1rem; + margin-bottom: 0.1; + font-size: 1.0em; + font-weight: 400 + /* display: none */ +} + +.algolia-autocomplete .algolia-docsearch-suggestion--title { + display: block; + padding: .25rem 1rem; + margin-bottom: 0; + font-size: 0.9em; + font-weight: 400 +} + +.algolia-autocomplete .algolia-docsearch-suggestion--text { + padding: 0 1rem .5rem; + margin-top: -.25rem; + font-size: 0.8em; + font-weight: 400; + line-height: 1.25 +} + +.algolia-autocomplete .algolia-docsearch-footer { + width: 110px; + height: 20px; + z-index: 3; + margin-top: 10.66667px; + float: right; + font-size: 0; + line-height: 0; +} + +.algolia-autocomplete .algolia-docsearch-footer--logo { + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: 50%; + background-size: 100%; + overflow: hidden; + text-indent: -9000px; + width: 100%; + height: 100%; + display: block; + transform: translate(-8px); +} + +.algolia-autocomplete .algolia-docsearch-suggestion--highlight { + color: #FF8C00; + background: rgba(232, 189, 54, 0.1) +} + + +.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight { + box-shadow: inset 0 -2px 0 0 rgba(105, 105, 105, .5) +} + +.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content { + background-color: rgba(192, 192, 192, .15) +} diff --git a/docs/docsearch.js b/docs/docsearch.js new file mode 100644 index 0000000..b35504c --- /dev/null +++ b/docs/docsearch.js @@ -0,0 +1,85 @@ +$(function() { + + // register a handler to move the focus to the search bar + // upon pressing shift + "/" (i.e. "?") + $(document).on('keydown', function(e) { + if (e.shiftKey && e.keyCode == 191) { + e.preventDefault(); + $("#search-input").focus(); + } + }); + + $(document).ready(function() { + // do keyword highlighting + /* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */ + var mark = function() { + + var referrer = document.URL ; + var paramKey = "q" ; + + if (referrer.indexOf("?") !== -1) { + var qs = referrer.substr(referrer.indexOf('?') + 1); + var qs_noanchor = qs.split('#')[0]; + var qsa = qs_noanchor.split('&'); + var keyword = ""; + + for (var i = 0; i < qsa.length; i++) { + var currentParam = qsa[i].split('='); + + if (currentParam.length !== 2) { + continue; + } + + if (currentParam[0] == paramKey) { + keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20")); + } + } + + if (keyword !== "") { + $(".contents").unmark({ + done: function() { + $(".contents").mark(keyword); + } + }); + } + } + }; + + mark(); + }); +}); + +/* Search term highlighting ------------------------------*/ + +function matchedWords(hit) { + var words = []; + + var hierarchy = hit._highlightResult.hierarchy; + // loop to fetch from lvl0, lvl1, etc. + for (var idx in hierarchy) { + words = words.concat(hierarchy[idx].matchedWords); + } + + var content = hit._highlightResult.content; + if (content) { + words = words.concat(content.matchedWords); + } + + // return unique words + var words_uniq = [...new Set(words)]; + return words_uniq; +} + +function updateHitURL(hit) { + + var words = matchedWords(hit); + var url = ""; + + if (hit.anchor) { + url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor; + } else { + url = hit.url + '?q=' + escape(words.join(" ")); + } + + return url; +} diff --git a/docs/index.html b/docs/index.html index f4c1357..6205aa1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,8 +8,8 @@ Calibration Functions for Analytical Chemistry • chemCal - - + + - chemCal + + chemCal + 0.1.37.9001 +
+
@@ -94,5 +111,7 @@
+ + diff --git a/docs/pkgdown.css b/docs/pkgdown.css index 181fe63..6ca2f37 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -1,13 +1,32 @@ -/* Sticker footer */ +/* Sticky footer */ + +/** + * Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ + * Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css + * + * .Site -> body > .container + * .Site-content -> body > .container .row + * .footer -> footer + * + * Key idea seems to be to ensure that .container and __all its parents__ + * have height set to 100% + * + */ + +html, body { + height: 100%; +} + body > .container { display: flex; - padding-top: 60px; - min-height: calc(100vh); + height: 100%; flex-direction: column; + + padding-top: 60px; } body > .container .row { - flex: 1; + flex: 1 0 auto; } footer { @@ -16,6 +35,7 @@ footer { border-top: 1px solid #e5e5e5; color: #666; display: flex; + flex-shrink: 0; } footer p { margin-bottom: 0; @@ -38,6 +58,12 @@ img { max-width: 100%; } +/* Typographic tweaking ---------------------------------*/ + +.contents h1.page-header { + margin-top: calc(-60px + 1em); +} + /* Section anchors ---------------------------------*/ a.anchor { @@ -68,7 +94,7 @@ a.anchor { .contents h1, .contents h2, .contents h3, .contents h4 { padding-top: 60px; - margin-top: -60px; + margin-top: -40px; } /* Static header placement on mobile devices */ @@ -108,7 +134,6 @@ a.anchor { /* Reference index & topics ----------------------------------------------- */ .ref-index th {font-weight: normal;} -.ref-index h2 {font-size: 20px;} .ref-index td {vertical-align: top;} .ref-index .alias {width: 40%;} @@ -192,3 +217,16 @@ a.sourceLine:hover { .hasCopyButton:hover button.btn-copy-ex { visibility: visible; } + +/* mark.js ----------------------------*/ + +mark { + background-color: rgba(255, 255, 51, 0.5); + border-bottom: 2px solid rgba(255, 153, 51, 0.3); + padding: 1px; +} + +/* vertical spacing after htmlwidgets */ +.html-widget { + margin-bottom: 10px; +} diff --git a/docs/pkgdown.js b/docs/pkgdown.js index 64b20df..de9bd72 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -1,94 +1,110 @@ -$(function() { - - $("#sidebar") - .stick_in_parent({offset_top: 40}) - .on('sticky_kit:bottom', function(e) { - $(this).parent().css('position', 'static'); - }) - .on('sticky_kit:unbottom', function(e) { - $(this).parent().css('position', 'relative'); +/* http://gregfranko.com/blog/jquery-best-practices/ */ +(function($) { + $(function() { + + $("#sidebar") + .stick_in_parent({offset_top: 40}) + .on('sticky_kit:bottom', function(e) { + $(this).parent().css('position', 'static'); + }) + .on('sticky_kit:unbottom', function(e) { + $(this).parent().css('position', 'relative'); + }); + + $('body').scrollspy({ + target: '#sidebar', + offset: 60 }); - $('body').scrollspy({ - target: '#sidebar', - offset: 60 - }); + $('[data-toggle="tooltip"]').tooltip(); + + var cur_path = paths(location.pathname); + var links = $("#navbar ul li a"); + var max_length = -1; + var pos = -1; + for (var i = 0; i < links.length; i++) { + if (links[i].getAttribute("href") === "#") + continue; + var path = paths(links[i].pathname); + + var length = prefix_length(cur_path, path); + if (length > max_length) { + max_length = length; + pos = i; + } + } - var cur_path = paths(location.pathname); - $("#navbar ul li a").each(function(index, value) { - if (value.text == "Home") - return; - if (value.getAttribute("href") === "#") - return; - - var path = paths(value.pathname); - if (is_prefix(cur_path, path)) { - // Add class to parent
  • , and enclosing
  • if in dropdown - var menu_anchor = $(value); + // Add class to parent
  • , and enclosing
  • if in dropdown + if (pos >= 0) { + var menu_anchor = $(links[pos]); menu_anchor.parent().addClass("active"); menu_anchor.closest("li.dropdown").addClass("active"); } }); -}); -function paths(pathname) { - var pieces = pathname.split("/"); - pieces.shift(); // always starts with / + function paths(pathname) { + var pieces = pathname.split("/"); + pieces.shift(); // always starts with / + + var end = pieces[pieces.length - 1]; + if (end === "index.html" || end === "") + pieces.pop(); + return(pieces); + } - var end = pieces[pieces.length - 1]; - if (end === "index.html" || end === "") - pieces.pop(); - return(pieces); -} + function prefix_length(needle, haystack) { + if (needle.length > haystack.length) + return(0); -function is_prefix(needle, haystack) { - if (needle.length > haystack.lengh) - return(false); + // Special case for length-0 haystack, since for loop won't run + if (haystack.length === 0) { + return(needle.length === 0 ? 1 : 0); + } - for (var i = 0; i < haystack.length; i++) { - if (needle[i] != haystack[i]) - return(false); - } + for (var i = 0; i < haystack.length; i++) { + if (needle[i] != haystack[i]) + return(i); + } - return(true); -} + return(haystack.length); + } -/* Clipboard --------------------------*/ + /* Clipboard --------------------------*/ -function changeTooltipMessage(element, msg) { - var tooltipOriginalTitle=element.getAttribute('data-original-title'); - element.setAttribute('data-original-title', msg); - $(element).tooltip('show'); - element.setAttribute('data-original-title', tooltipOriginalTitle); -} + function changeTooltipMessage(element, msg) { + var tooltipOriginalTitle=element.getAttribute('data-original-title'); + element.setAttribute('data-original-title', msg); + $(element).tooltip('show'); + element.setAttribute('data-original-title', tooltipOriginalTitle); + } -if(Clipboard.isSupported()) { - $(document).ready(function() { - var copyButton = ""; + if(Clipboard.isSupported()) { + $(document).ready(function() { + var copyButton = ""; - $(".examples").addClass("hasCopyButton"); + $(".examples, div.sourceCode").addClass("hasCopyButton"); - // Insert copy buttons: - $(copyButton).prependTo(".hasCopyButton"); + // Insert copy buttons: + $(copyButton).prependTo(".hasCopyButton"); - // Initialize tooltips: - $('.btn-copy-ex').tooltip({container: 'body'}); + // Initialize tooltips: + $('.btn-copy-ex').tooltip({container: 'body'}); - // Initialize clipboard: - var clipboardBtnCopies = new Clipboard('[data-clipboard-copy]', { - text: function(trigger) { - return trigger.parentNode.textContent; - } - }); + // Initialize clipboard: + var clipboardBtnCopies = new Clipboard('[data-clipboard-copy]', { + text: function(trigger) { + return trigger.parentNode.textContent; + } + }); - clipboardBtnCopies.on('success', function(e) { - changeTooltipMessage(e.trigger, 'Copied!'); - e.clearSelection(); - }); + clipboardBtnCopies.on('success', function(e) { + changeTooltipMessage(e.trigger, 'Copied!'); + e.clearSelection(); + }); - clipboardBtnCopies.on('error', function() { - changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy'); + clipboardBtnCopies.on('error', function() { + changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy'); + }); }); - }); -} - + } +})(window.jQuery || window.$) diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml new file mode 100644 index 0000000..6e67788 --- /dev/null +++ b/docs/pkgdown.yml @@ -0,0 +1,5 @@ +pandoc: 1.19.2.4 +pkgdown: 1.1.0 +pkgdown_sha: ~ +articles: [] + diff --git a/docs/reference/calplot.lm-1.png b/docs/reference/calplot.lm-1.png index c90b25f..aa0286d 100644 Binary files a/docs/reference/calplot.lm-1.png and b/docs/reference/calplot.lm-1.png differ diff --git a/docs/reference/calplot.lm.html b/docs/reference/calplot.lm.html index 910e4ea..7eda066 100644 --- a/docs/reference/calplot.lm.html +++ b/docs/reference/calplot.lm.html @@ -21,17 +21,23 @@ + + + - - - + + + + + + @@ -54,8 +60,12 @@ - chemCal + + chemCal + 0.1.37.9001 + + @@ -76,21 +87,25 @@ -
    +
    +

    Produce graphics of calibration data, the fitted model as well as confidence, and, for unweighted regression, prediction bands.

    +
    calplot(object, xlim = c("auto", "auto"), ylim = c("auto", "auto"),
         xlab = "Concentration", ylab = "Response", alpha=0.05, varfunc = NULL)
    -

    Arguments

    +

    Arguments

    @@ -149,7 +164,7 @@

    Examples

    data(massart97ex3) m <- lm(y ~ x, data = massart97ex3) -calplot(m)
    +calplot(m)
    + + + diff --git a/docs/reference/chemCal-package.html b/docs/reference/chemCal-package.html index ee92d84..8e6f39b 100644 --- a/docs/reference/chemCal-package.html +++ b/docs/reference/chemCal-package.html @@ -21,16 +21,22 @@ + + + - - - + + + + + + @@ -53,8 +59,12 @@ - chemCal + + chemCal + 0.1.37.9001 + + @@ -75,15 +86,19 @@ -
    +
    +

    Details

    @@ -118,5 +133,8 @@
    + + + diff --git a/docs/reference/din32645-1.png b/docs/reference/din32645-1.png index d04e5fe..9dc7295 100644 Binary files a/docs/reference/din32645-1.png and b/docs/reference/din32645-1.png differ diff --git a/docs/reference/din32645.html b/docs/reference/din32645.html index 5e2bf2d..03170e0 100644 --- a/docs/reference/din32645.html +++ b/docs/reference/din32645.html @@ -21,16 +21,22 @@ + + + - - - + + + + + + @@ -53,8 +59,12 @@ - chemCal + + chemCal + 0.1.37.9001 +
    +
    @@ -75,15 +86,19 @@ -
    +
    +

    Sample dataset to test the package.

    +
    data(din32645)
    @@ -105,7 +120,7 @@

    Examples

    data(din32645) m <- lm(y ~ x, data = din32645) -calplot(m)
    +calplot(m)
    ## Prediction of x with confidence interval (prediction <- inverse.predict(m, 3500, alpha = 0.01))
    #> $Prediction #> [1] 0.1054792 @@ -180,5 +195,8 @@
    + + + diff --git a/docs/reference/index.html b/docs/reference/index.html index 9b514f2..ce4f346 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -21,13 +21,19 @@ + + + - - - + + + + + + @@ -50,8 +56,12 @@ - chemCal + + chemCal + 0.1.37.9001 +
    +
    @@ -72,82 +83,78 @@ -
    -
    +
    +
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    All functions

    -

    -
    -

    calplot

    -

    Plot calibration graphs from univariate linear models

    -

    chemCal-package

    -

    Calibration functions for analytical chemistry

    -

    data

    -

    Calibration data from DIN 32645

    -

    inverse.predict

    -

    Predict x from y for a linear calibration

    -

    lod

    -

    Estimate a limit of detection (LOD)

    -

    loq

    -

    Estimate a limit of quantification (LOQ)

    -

    data

    -

    Calibration data from Massart et al. (1997), example 1

    -

    data

    -

    Calibration data from Massart et al. (1997), example 3

    -
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +

    All functions

    +

    +
    +

    calplot()

    +

    Plot calibration graphs from univariate linear models

    +

    chemCal-package

    +

    Calibration functions for analytical chemistry

    +

    din32645

    +

    Calibration data from DIN 32645

    +

    inverse.predict()

    +

    Predict x from y for a linear calibration

    +

    lod()

    +

    Estimate a limit of detection (LOD)

    +

    loq()

    +

    Estimate a limit of quantification (LOQ)

    +

    massart97ex1

    +

    Calibration data from Massart et al. (1997), example 1

    +

    massart97ex3

    +

    Calibration data from Massart et al. (1997), example 3

    + + + diff --git a/docs/reference/inverse.predict.html b/docs/reference/inverse.predict.html index 32f8f44..672e322 100644 --- a/docs/reference/inverse.predict.html +++ b/docs/reference/inverse.predict.html @@ -21,12 +21,15 @@ + + + - - - + + + + + + @@ -62,8 +68,12 @@ - chemCal + + chemCal + 0.1.37.9001 +
    + @@ -84,12 +95,15 @@ -
    +
    +

    This function predicts x values using a univariate linear model that has been generated for the purpose of calibrating a measurement method. Prediction @@ -102,11 +116,12 @@ differing from the precision in standard samples used for the calibration. This is elaborated in the package vignette.

    +
    inverse.predict(object, newdata, …,
       ws, alpha=0.05, var.s = "auto")
    -

    Arguments

    +

    Arguments

    @@ -226,5 +241,8 @@ + + + diff --git a/docs/reference/lod.html b/docs/reference/lod.html index 13ce70a..7519f19 100644 --- a/docs/reference/lod.html +++ b/docs/reference/lod.html @@ -21,12 +21,15 @@ + + + - - - + + + + + + @@ -60,8 +66,12 @@ - chemCal + + chemCal + 0.1.37.9001 + + @@ -82,12 +93,15 @@ -
    +
    +

    The decision limit (German: Nachweisgrenze) is defined as the signal or analyte concentration that is significantly different from the blank signal @@ -98,10 +112,11 @@ the analyte is present (type II or false negative error), is beta (also a one-sided significance test).

    +
    lod(object, …, alpha = 0.05, beta = 0.05, method = "default", tol = "default")
    -

    Arguments

    +

    Arguments

    @@ -169,7 +184,7 @@

    See also

    -

    Examples for din32645

    +

    Examples for din32645

    Examples

    @@ -223,5 +238,8 @@ + + + diff --git a/docs/reference/loq.html b/docs/reference/loq.html index 2fb01a8..09567db 100644 --- a/docs/reference/loq.html +++ b/docs/reference/loq.html @@ -21,12 +21,15 @@ + + + - - - + + + + + + @@ -59,8 +65,12 @@ - chemCal + + chemCal + 0.1.37.9001 + + @@ -81,12 +92,15 @@ -
    +
    +

    The limit of quantification is the x value, where the relative error of the quantification given the calibration model reaches a prespecified @@ -96,11 +110,12 @@ (DIN 32645, equivalent to ISO 11843). c(L) is internally estimated by inverse.predict, and L is obtained by iteration.

    +
    loq(object, …, alpha = 0.05, k = 3, n = 1, w.loq = "auto",
         var.loq = "auto", tol = "default")
    -

    Arguments

    +

    Arguments

    @@ -165,7 +180,7 @@

    See also

    -

    Examples for din32645

    +

    Examples for din32645

    Examples

    @@ -217,5 +232,8 @@ + + + diff --git a/docs/reference/massart97ex1.html b/docs/reference/massart97ex1.html index 637d524..ddd1ce1 100644 --- a/docs/reference/massart97ex1.html +++ b/docs/reference/massart97ex1.html @@ -21,16 +21,22 @@ + + + - - - + + + + + + @@ -53,8 +59,12 @@ - chemCal + + chemCal + 0.1.37.9001 + + @@ -75,15 +86,19 @@ -
    +
    +

    Sample dataset from p. 175 to test the package.

    +
    data(massart97ex1)
    @@ -123,5 +138,8 @@
    + + + diff --git a/docs/reference/massart97ex3-1.png b/docs/reference/massart97ex3-1.png index 88668fa..247eca0 100644 Binary files a/docs/reference/massart97ex3-1.png and b/docs/reference/massart97ex3-1.png differ diff --git a/docs/reference/massart97ex3.html b/docs/reference/massart97ex3.html index d737fc5..434fc7b 100644 --- a/docs/reference/massart97ex3.html +++ b/docs/reference/massart97ex3.html @@ -21,16 +21,22 @@ + + + - - - + + + + + + @@ -53,8 +59,12 @@ - chemCal + + chemCal + 0.1.37.9001 +
    +
    @@ -75,15 +86,19 @@ -
    +
    +

    Sample dataset from p. 188 to test the package.

    +
    data(massart97ex3)
    @@ -109,7 +124,7 @@ w <- round(1 / (s^2), digits = 3) weights <- w[factor(x)] m <- lm(y ~ x, w = weights) -calplot(m)
    #> Warning: Assuming constant prediction variance even though model fit is weighted
    +calplot(m)
    #> Warning: Assuming constant prediction variance even though model fit is weighted
    # The following concords with the book p. 200 inverse.predict(m, 15, ws = 1.67) # 5.9 +- 2.5
    #> $Prediction #> [1] 5.865367 @@ -194,5 +209,8 @@
    + + + -- cgit v1.2.1