plot.ks_output | R Documentation |
Plot Item Fit using Kernel-Smoothing
## S3 method for class 'ks_output' plot( x, item_no, ip = NULL, title = "", ci = 0.95, base_r_graph = FALSE, suppress_plot = FALSE, ... )
x |
The output of |
item_no |
The order (i.e. column number) of the item to be plotted. |
ip |
An |
title |
Title of the plot. If the value is |
ci |
It is either a number indicating the confidence interval that will
be plotted around the item fit line or |
base_r_graph |
If |
suppress_plot |
If |
... |
further arguments. |
Emre Gonulates
# Generate responses ip <- generate_ip() resp <- sim_resp(ip = ip, theta = rnorm(500), prop_missing = .2) # Run kernel smoothing ks_data <- ks(resp) # Plot first item plot(ks_data, item_no = 1) # Plot second item with expected probability value plot(ks_data, item_no = 2, ip = ip) plot(ks_data, item = 2, ip = ip[[2]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.