l*********d 发帖数: 254 | 1 我的问题是:
其实我不知道怎样写下面这个code, 于是就把所有能放的东西方在里面了,然后自己
运行了一下,什么也没得到。希望大家能给与指点,谢谢!
题目如下:
a) Below is the code that I used to simulate the data.
set.seed(9192)
time<-c(3,6,9,12,15,18,21,24,30,36,48,60)
epsilon<-rnorm(n = length(time), mean = 0, sd = 0.014)
beta0<-1
beta1<--0.001
potency<-beta0 + beta1*time + epsilon
set1<-data.frame(time, potency)
set1
#Batch #2 and #3
set.seed(1991)
epsilon<-rnorm(n = length(time), mean = 0, sd = 0.014)
potency<-beta0 + beta1*time + 0.01 + e | l****e 发帖数: 15 | | l*********d 发帖数: 254 | 3 I have figured it out. Thanks any way! |
|