renewalCount() function in Countr
up vote
0
down vote
favorite
I'm trying to use "renewalCount" function from "Countr" package. I get the error:
"Error in order(-value, xtimes) : object 'xtimes' not found"
for the last line and I do not know how to solve it. I tried defining a vector of equal values of length 9 or 33 (sum of numb), it didn't work. Thank you very much in advance!
library("Countr")<br/>
library("dplyr")<br/>
library("xtable")<br/>
D=matrix(c(1:9))<br/>
Numb=matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))<br/>
Number=data.frame(Numb)<br/>
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull", computeHessian = FALSE, control = renewal.control(trace = 0))
regression
migrated from stats.stackexchange.com Oct 22 at 10:40
This question came from our site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.
add a comment |
up vote
0
down vote
favorite
I'm trying to use "renewalCount" function from "Countr" package. I get the error:
"Error in order(-value, xtimes) : object 'xtimes' not found"
for the last line and I do not know how to solve it. I tried defining a vector of equal values of length 9 or 33 (sum of numb), it didn't work. Thank you very much in advance!
library("Countr")<br/>
library("dplyr")<br/>
library("xtable")<br/>
D=matrix(c(1:9))<br/>
Numb=matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))<br/>
Number=data.frame(Numb)<br/>
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull", computeHessian = FALSE, control = renewal.control(trace = 0))
regression
migrated from stats.stackexchange.com Oct 22 at 10:40
This question came from our site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to use "renewalCount" function from "Countr" package. I get the error:
"Error in order(-value, xtimes) : object 'xtimes' not found"
for the last line and I do not know how to solve it. I tried defining a vector of equal values of length 9 or 33 (sum of numb), it didn't work. Thank you very much in advance!
library("Countr")<br/>
library("dplyr")<br/>
library("xtable")<br/>
D=matrix(c(1:9))<br/>
Numb=matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))<br/>
Number=data.frame(Numb)<br/>
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull", computeHessian = FALSE, control = renewal.control(trace = 0))
regression
I'm trying to use "renewalCount" function from "Countr" package. I get the error:
"Error in order(-value, xtimes) : object 'xtimes' not found"
for the last line and I do not know how to solve it. I tried defining a vector of equal values of length 9 or 33 (sum of numb), it didn't work. Thank you very much in advance!
library("Countr")<br/>
library("dplyr")<br/>
library("xtable")<br/>
D=matrix(c(1:9))<br/>
Numb=matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))<br/>
Number=data.frame(Numb)<br/>
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull", computeHessian = FALSE, control = renewal.control(trace = 0))
regression
regression
asked Oct 22 at 5:54
sam
31
31
migrated from stats.stackexchange.com Oct 22 at 10:40
This question came from our site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.
migrated from stats.stackexchange.com Oct 22 at 10:40
This question came from our site for people interested in statistics, machine learning, data analysis, data mining, and data visualization.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
simply type (for R in Windows)
xtimes<-1
because xtimes works only for Linux
add a comment |
up vote
0
down vote
A workaround is to install the previous CRAN version of optimx, since this error
is caused by version 2018-7.10 of optimx. After doing that, your example works:
packageDescription("optimx")$Version
## [1] "2013.8.7"
library("Countr")
library("dplyr")
D = matrix(c(1:9))
Numb = matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))
Number = data.frame(Numb)
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
computeHessian = FALSE, control = renewal.control(trace = 0))
a_weib
## Call:
## renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
## control = renewal.control(trace = 0), computeHessian = FALSE)
## Count model coefficients (inter-arrival weibull with scale: link log, shape: link log):
## scale_ shape_
## 1.3438 -0.2194
##
## Log-likelihood: -21.2192 on 2 Df
If this is a bug in package Countr, we will release a fixed version.
New contributor
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
simply type (for R in Windows)
xtimes<-1
because xtimes works only for Linux
add a comment |
up vote
0
down vote
accepted
simply type (for R in Windows)
xtimes<-1
because xtimes works only for Linux
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
simply type (for R in Windows)
xtimes<-1
because xtimes works only for Linux
simply type (for R in Windows)
xtimes<-1
because xtimes works only for Linux
answered Oct 23 at 23:27
Alfredo Garcia
16
16
add a comment |
add a comment |
up vote
0
down vote
A workaround is to install the previous CRAN version of optimx, since this error
is caused by version 2018-7.10 of optimx. After doing that, your example works:
packageDescription("optimx")$Version
## [1] "2013.8.7"
library("Countr")
library("dplyr")
D = matrix(c(1:9))
Numb = matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))
Number = data.frame(Numb)
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
computeHessian = FALSE, control = renewal.control(trace = 0))
a_weib
## Call:
## renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
## control = renewal.control(trace = 0), computeHessian = FALSE)
## Count model coefficients (inter-arrival weibull with scale: link log, shape: link log):
## scale_ shape_
## 1.3438 -0.2194
##
## Log-likelihood: -21.2192 on 2 Df
If this is a bug in package Countr, we will release a fixed version.
New contributor
add a comment |
up vote
0
down vote
A workaround is to install the previous CRAN version of optimx, since this error
is caused by version 2018-7.10 of optimx. After doing that, your example works:
packageDescription("optimx")$Version
## [1] "2013.8.7"
library("Countr")
library("dplyr")
D = matrix(c(1:9))
Numb = matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))
Number = data.frame(Numb)
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
computeHessian = FALSE, control = renewal.control(trace = 0))
a_weib
## Call:
## renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
## control = renewal.control(trace = 0), computeHessian = FALSE)
## Count model coefficients (inter-arrival weibull with scale: link log, shape: link log):
## scale_ shape_
## 1.3438 -0.2194
##
## Log-likelihood: -21.2192 on 2 Df
If this is a bug in package Countr, we will release a fixed version.
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
A workaround is to install the previous CRAN version of optimx, since this error
is caused by version 2018-7.10 of optimx. After doing that, your example works:
packageDescription("optimx")$Version
## [1] "2013.8.7"
library("Countr")
library("dplyr")
D = matrix(c(1:9))
Numb = matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))
Number = data.frame(Numb)
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
computeHessian = FALSE, control = renewal.control(trace = 0))
a_weib
## Call:
## renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
## control = renewal.control(trace = 0), computeHessian = FALSE)
## Count model coefficients (inter-arrival weibull with scale: link log, shape: link log):
## scale_ shape_
## 1.3438 -0.2194
##
## Log-likelihood: -21.2192 on 2 Df
If this is a bug in package Countr, we will release a fixed version.
New contributor
A workaround is to install the previous CRAN version of optimx, since this error
is caused by version 2018-7.10 of optimx. After doing that, your example works:
packageDescription("optimx")$Version
## [1] "2013.8.7"
library("Countr")
library("dplyr")
D = matrix(c(1:9))
Numb = matrix(c(15, 4, 5, 3, 1, 2, 1, 1, 1))
Number = data.frame(Numb)
a_weib <- renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
computeHessian = FALSE, control = renewal.control(trace = 0))
a_weib
## Call:
## renewalCount(formula = D ~ 1, data = Number, dist = "weibull",
## control = renewal.control(trace = 0), computeHessian = FALSE)
## Count model coefficients (inter-arrival weibull with scale: link log, shape: link log):
## scale_ shape_
## 1.3438 -0.2194
##
## Log-likelihood: -21.2192 on 2 Df
If this is a bug in package Countr, we will release a fixed version.
New contributor
New contributor
answered Nov 8 at 10:47
Georgi Boshnakov
11
11
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52927399%2frenewalcount-function-in-countr%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password