楼主: jialing6
10250 2

[问答] 需要TRUE/FALSE值的地方不可以用缺少值?? [推广有奖]

  • 1关注
  • 1粉丝

等待验证会员

已卖:2份资源

大专生

90%

还不是VIP/贵宾

-

威望
0
论坛币
143 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1611 点
帖子
70
精华
0
在线时间
57 小时
注册时间
2012-3-14
最后登录
2015-2-11

楼主
jialing6 发表于 2013-2-27 15:35:25 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我的程序如下:

rt=read.csv("hppmi.csv")

y=rt[,1]

x=rt[,2]

library(np)

#package np, nonparametric andsemiparametric kernel methods

library(np)

h1=npregbw(formula=y~x); h1

fit1<-npreg(bws=h1,txdat=x,tydat=y)

plot(x,y)

points(x,y)


> h2=dpill(x,y); h2错误于if (from == to) rep.int(from, length.out) else as.vector(c(from,  :   需要TRUE/FALSE值的地方不可以用缺少值> fit2<-locpoly(x,y,bandwidth=h2)错误于if (from == to) rep.int(from, length.out) else as.vector(c(from,  :   需要TRUE/FALSE值的地方不可以用缺少值> plot(x,y)> lines(fit2)> #first order derivatives> order1<-locpoly(x,y,bandwidth=h2,drv=1)错误于if (from == to) rep.int(from, length.out) else as.vector(c(from,  :   需要TRUE/FALSE值的地方不可以用缺少值> plot(order1$x,order1$y,type='l')#first order derivativesorder1<-locpoly(x,y,bandwidth=h2,drv=1)plot(order1$x,order1$y,type='l')

程序中我并没有用到if语句,为什么出现错误呢???求教


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:LSE Rue TRU derivatives Parametric library package 程序

沙发
DM小菜鸟 发表于 2014-12-19 16:49:19
这个是软件包里面的函数出错了
函数里面有if语句

藤椅
rupysxl 发表于 2015-5-22 10:07:34
遇到同样的问题,请问如何解决的?谢谢

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 21:33