Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
graemeblair committed Dec 13, 2017
1 parent cbd3976 commit 7e950b8
Show file tree
Hide file tree
Showing 19 changed files with 1,026 additions and 155 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
LICENSE
README.md
^docs$
_pkgdown.yml
_pkgdown.yml
^_pkgdown\.yml$
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# rr
# Methods for analysing randomized response technique survey questions

[![Travis-CI Build Status](https://travis-ci.org/SensitiveQuestions/rr.svg?branch=master)](https://travis-ci.org/SensitiveQuestions/rr) [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rr)](https://cran.r-project.org/package=rr) [![CRAN downloads](https://cranlogs.r-pkg.org/badges/grand-total/rr)

R package rr
Enables researchers to conduct multivariate statistical analyses of survey data with randomized response technique items from several designs, including mirrored question, forced question, and unrelated question. This includes regression with the randomized response as the outcome and logistic regression with the randomized response item as a predictor. In addition, tools for conducting power analysis for designing randomized response items are included. The package implements methods described in Blair, Imai, and Zhou (2015) ''Design and Analysis of the Randomized Response Technique,'' Journal of the American Statistical Association <http://graemeblair.com/papers/randresp.pdf>.
791 changes: 791 additions & 0 deletions docs/LICENSE.html

Large diffs are not rendered by default.

26 changes: 22 additions & 4 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion docs/pkgdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ img.icon {
float: right;
}

img {
max-width: 100%;
}

/* Section anchors ---------------------------------*/

a.anchor {
Expand Down Expand Up @@ -133,9 +137,14 @@ pre, code {
color: #333;
}

pre img {
pre .img {
margin: 5px 0;
}

pre .img img {
background-color: #fff;
display: block;
height: auto;
}

code a, pre a {
Expand Down
37 changes: 37 additions & 0 deletions docs/pkgdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,41 @@ $(function() {
offset: 60
});

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 <li>, and enclosing <li> if in dropdown
var menu_anchor = $(value);
menu_anchor.parent().addClass("active");
menu_anchor.closest("li.dropdown").addClass("active");
}
});
});

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);
}

function is_prefix(needle, haystack) {
if (needle.length > haystack.lengh)
return(false);

for (var i = 0; i < haystack.length; i++) {
if (needle[i] != haystack[i])
return(false);
}

return(true);
}
5 changes: 3 additions & 2 deletions docs/reference/Nigeria.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/reference/nigeria-data.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/reference/power.rr.plot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions docs/reference/power.rr.plot.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 25 additions & 24 deletions docs/reference/power.rr.test.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7e950b8

Please sign in to comment.