Skip to content

Commit ef50c02

Browse files
author
Tyson Barrett
committed
Typo in docs and tp
1 parent 0ce6efc commit ef50c02

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

R/tp.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ tp = function(formula, data, bin.link = "logit", count.family = poisson(link = "
2525

2626

2727
print.tp = function(x, ...){
28-
cat("---\nBinary Portion of Two-Part Hurdle Model\n\n")
28+
cat("---\nBinary Portion of Two-Part Model\n\n")
2929
print(summary.glm(x$Binary)$coef, ...)
30-
cat("\n---\nCount Portion of Two-Part Hurdle Model\n\n")
30+
cat("\n---\nCount Portion of Two-Part Model\n\n")
3131
print(summary.glm(x$Count)$coef, ...)
3232
cat("---\nModel 1: binomial with", x$Binary$family[[2]], "link",
3333
"\nModel 2:", x$Count$family[[1]], "with", x$Count$family[[2]], "link \n")

man/furniture-package.Rd

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ levels(b$race) = c("white", "black", "other")
4040
## Table1 example ##
4141

4242
table1(b, age, race, smoke, ptl, ht, ui, ftv,
43-
splitby=~low,
43+
splitby=~factor(low),
4444
test=TRUE,
4545
var.names = c("Age", "Race", "Smoking Status", "Previous Premature Labors", "Hypertension",
4646
"Uterine Irratibility", "Physician Visits"),

man/table1.Rd

+5-3
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@ levels(b$race) = c("white", "black", "other")
9191
table1(b, age, race, smoke, ptl, ht, ui, ftv,
9292
NAkeep=TRUE)
9393

94+
## can adjust variable in the function -- low changed to factor
9495
table1(b, age, race, smoke, ptl, ht, ui, ftv,
95-
splitby=~low,
96+
splitby=~factor(low),
9697
NAkeep=TRUE)
97-
9898
table1(b, age, race, smoke, ptl, ht, ui, ftv,
99-
splitby=~low,
99+
splitby=~factor(low),
100100
test=TRUE)
101101

102+
## or can adjust before hand
103+
b$low = as.factor(b$low)
102104
table1(b, age, race, smoke, ptl, ht, ui, ftv,
103105
splitby=~low,
104106
test=TRUE,

0 commit comments

Comments
 (0)