File: specs.Design.Rd

package info (click to toggle)
design 2.0.9-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,412 kB
  • ctags: 1,385
  • sloc: asm: 13,815; fortran: 626; sh: 28; makefile: 12
file content (58 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
\name{specs.Design}
\alias{specs.Design}
\alias{specs}
\alias{print.specs.Design}
\title{
Design Specifications for Models
}
\description{
Prints the design specifications, e.g., number of parameters for each
factor, levels of categorical factors, knot locations in splines,
pre-transformations, etc. 
}
\usage{
specs(fit, \dots)
\method{specs}{Design}(fit, long=FALSE, \dots)

\method{print}{specs.Design}(x, \dots)
}
\arguments{
\item{fit}{
a fit object created with the \code{Design} library in effect
}
\item{x}{
an object returned by \code{specs}
}
\item{long}{
if  \code{TRUE}, causes the plotting and estimation limits to be printed for
each factor
}
\item{\dots}{ignored}
}
\value{
a list containing information about the fit and the predictors as elements
}
\author{
Frank Harrell\cr
Department of Biostatistics, Vanderbilt University\cr
f.harrell@vanderbilt.edu
}
\seealso{
\code{\link{Design}}, \code{\link{Design.trans}}, \code{\link{latex.Design}}, \code{\link{datadist}}
}
\examples{
set.seed(1)
blood.pressure <- rnorm(200, 120, 15)
dd <- datadist(blood.pressure)
options(datadist='dd')
L <- .03*(blood.pressure-120)
sick <- ifelse(runif(200) <= plogis(L), 1, 0)
f <- lrm(sick ~ rcs(blood.pressure,5))
specs(f)    # find out where 5 knots are placed
g <- glmD(sick ~ rcs(blood.pressure,5), family=binomial)
specs(g,long=TRUE)
options(datadist=NULL)
}
\keyword{models}
\keyword{regression}
\keyword{methods}