Usage
condens(form,window=.7,bandwidth=0,kern="tcub",
mingrid.x=NULL,maxgrid.x=NULL,mingrid.y=NULL,maxgrid.y=NULL,ngrid=50,
xlab="x",ylab="y",zlab="fxy/fx",contour=TRUE,level=TRUE,wire=TRUE,dens=TRUE,
targetx.dens=NULL,quantile.dens=c(.10,.25,.50,.75,.90),data=NULL)
Arguments
window
Window size. Default: 0.25.
bandwidth
Bandwidth. Default: not used.
kern
Kernel weighting functions. Default is the tri-cube. Options include "rect", "tria", "epan", "bisq", "tcub", "trwt", and "gauss".
mingrid.x, maxgrid.x, mingrid.y, maxgrid.y,
ngrid
The mingrid and maxgrid values are the boundaries for the ngrid x ngrid lattice used in the graphs produced by condens.
By default, mingrid.x = min(x), maxgrid.x = max(x), mingrid.y = min(y), maxgrid.y = max(y), and ngrid=50.
xlab
Label for the x-axis in graphs. Default: "x"
ylab
Label for the y-axis in graphs. Default: "y"
zlab
Label for the z-axis in graphs. Default: "fxy/fx"
contour
If contour=T, produces a two-dimensional contour plot of the conditional density estimates.
Evaluated for an ngrid x ngrid lattice. Default is contour=T.
level
If level=T, produces a two-dimensional level plot of the conditional density estimates.
Evaluated for an ngrid x ngrid lattice. Default is level=F.
wire
If wire=T, produces a three-dimensional plot of the conditional density estimates.
Evaluated for an ngrid x ngrid lattice. Default is wire=T.
dens
If dens=T, produces a plot showing how f(y|x) varies over y for given target values of x.
Target values of x are provided using the targetx.dens or quantile.dens options. Default is dens=F
targetx.dens
Target values for x in the density plots, e.g, targetx.dens = c(200,400,600). Maximum number of entries is 5.
If targetx.dens has more than 5 entries, only the first 5 will be used. Default is targetx.dens = NULL,
quantile.dens
Quantiles for the target values for x in the density plots, e.g, quantile.dens = c(.25,.50,.75). Maximum number of entries is 5.
If quantile.dens has more than 5 entries, only the first 5 will be used. Default is quantile.dens<
data
A data frame containing the data. Default: use data in the current working directory.