spa.sim: Simulated data for SPA

Description Usage Arguments Author(s) References Examples

Description

An easy function to access the "moon" data set used to illustrate this package.

Usage

1
spa.sim(n=206,m=3,p=8,type=c("moon","supervised"),nonoise=TRUE)

Arguments

n

the total number of x observations to generate

m

the number of labeled cases (m<n) to generate

p

the diminsion on the x data. First two columns are meaningful, others are noise.

type

the unlabeled border to generate

nonoise

whether or not the addiotional noisy columns should be returned

...

additional arguments passed into the function

Author(s)

Mark Culp

References

M. Culp (2011). spa: A Semi-Supervised R Package for Semi-Parametric Graph-Based Estimation. Journal of Statistical Software, 40(10), 1-29. URL http://www.jstatsoft.org/v40/i10/.

Examples

1
2
3
4
5
6
7
8
9
set.seed(100)
dat=spa.sim(type="moon") 

L=which(!is.na(dat$y))
U=which(is.na(dat$y))

##Fit data
gsemi<-spa(dat$y,graph=as.matrix(daisy(dat[,-1])))
gsemi

spa documentation built on May 30, 2017, 1:27 a.m.

Related to spa.sim in spa...