spa.sim(spa)
spa.sim()所属R语言包:spa
Simulated data for SPA
模拟数据SPA
译者:生物统计家园网 机器人LoveR
描述----------Description----------
An easy function to access the "moon" data set used to illustrate this package.
一个简单的函数来访问的“月亮”数据集来说明这个包。
用法----------Usage----------
spa.sim(n=206,m=3,p=8,type=c("moon","supervised"),nonoise=TRUE)
参数----------Arguments----------
参数:n
the total number of x observations to generate
x的观测生成的总数
参数:m
the number of labeled cases (m<n) to generate
标记的情况下的数量(m <n的),以产生
参数:p
the diminsion on the x data. First two columns are meaningful, others are noise.
x数据的diminsion。前两列是有意义的,其他的噪音。
参数:type
the unlabeled border to generate
未标记的边界产生
参数:nonoise
whether or not the addiotional noisy columns should be returned
应返回与否的addiotional嘈杂列
参数:...
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----------
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
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|