[R] Error: Invalid parent values

2023-02-02 Thread Md. Moyazzem Hossain
Hi, I hope that you are doing well. I am Md Hossain, trying to fit the ARIMAX model in RJAGS. However, I got an error message while I ran the code. Initially, I am using data obtained from R-package then I will implement it into real data. The code and error message are given below. library(rja

Re: [R] Need help

2022-08-05 Thread Md. Moyazzem Hossain
shape = b, > lower.tail = FALSE) > # > # use whichever you please > > mean(inner) - (1 - 1/r) > } > > out <- uniroot(ff, lower = 0, upper = 1)$root > out > > On Thu, Aug 4, 2022 at 3:17 PM Md. Moyazzem Hossain > wrote: > >>

[R] Need help

2022-08-04 Thread Md. Moyazzem Hossain
f.upper = f(upper) is NA Please help me. Thanks in advance. Take care. Hossain -- Best Regards, Md. Moyazzem Hossain Associate Professor Department of Statistics Jahangirnagar University Savar, Dhaka-1342, Bangladesh [[alternative HTML versi

Re: [R] Need help in ggplot

2022-06-28 Thread Md. Moyazzem Hossain
tor > value has an associated probability prob; > - make values equal to gray_vals. > > > gray_vals <- setNames(gray(df$prob), df$predictors) > > ggplot(df, aes(x = predictors, y = values) ) + >geom_col(aes(fill = predictors)) + >coord_flip() + >scale_fill

[R] Need help in ggplot

2022-06-28 Thread Md. Moyazzem Hossain
Dear R- Experts, I hope that you are doing well. I am facing a problem with adding color to a barplot. My target is to add a bar color conditioning on the following Values close to 1 represent "White" and values tend to 0 represent "Black". However, I failed. The code is given below. I will be

Re: [R] Plots not showing up in the RStudio plot pane

2022-02-27 Thread Md. Moyazzem Hossain
m. > > You may also have a `.Rprofile` R file in your home directory with some > commands in it that could mess with your settings. > > [1] https://community.rstudio.com/ > > On February 26, 2022 2:03:53 PM PST, "Md. Moyazzem Hossain" < > hossai...@juniv.edu&g

Re: [R] Calculation of Age heaping

2021-08-10 Thread Md. Moyazzem Hossain
d certainly want to check whether the high and low digits of age > - 23 were in fact independent. > > On Mon, 9 Aug 2021 at 23:48, Md. Moyazzem Hossain > wrote: > > > > Dear Greg, > > > > Thank you very much for your suggestion. I will try it and follow yo

Re: [R] Calculation of Age heaping

2021-08-09 Thread Md. Moyazzem Hossain
> > be a good, but not too hard, exercise, of some interest. enjoy! > > > > cheers, Greg > > > > __ > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > > https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] Calculation of Age heaping

2021-08-09 Thread Md. Moyazzem Hossain
; > that seems fairly straight forward. if you are trying to learn R, > and/or learn programming, i might suggest you *not* use a package, and > rather work on coding up the calculation yourself. that would probably > be a good, but not too hard, exercise, of some interest. enjoy! > &g

Re: [R] Calculation of Age heaping

2021-08-09 Thread Md. Moyazzem Hossain
.7) [CRAN] > 12: Rcpp (1.0.6 -> 1.0.7) [CRAN] > 13: curl (4.3.1 -> 4.3.2) [CRAN] > 14: cpp11 (0.2.7 -> 0.3.1) [CRAN] > > In your case, if you selected All, what exactly did you expect? > > > -Original Message- > From: R-help On Behalf Of Md.

[R] Calculation of Age heaping

2021-08-08 Thread Md. Moyazzem Hossain
rts’ I am attaching the R-code and data file along with this email. Please help me in this regard. Thanks in advance. -- Best Regards, Md. Moyazzem Hossain Associate Professor Department of Statistics Jahangirnagar University Savar, Dhaka-1342 Bangladesh Website: http://www.juniv.edu/teacher

Re: [R] Regarding fitted value

2021-02-02 Thread Md. Moyazzem Hossain
gt; > / >> > Partho Sarkar >> > / >> > >> > On Tue, Feb 2, 2021 at 12:28 PM Rui Barradas > > <mailto:ruipbarra...@sapo.pt>> wrote: >> > >> > Hello, >> > >> > You get the fitted values for years 2000, ..., 2019. &

Re: [R] Regarding fitted value

2021-02-01 Thread Md. Moyazzem Hossain
llo, > > From help('forecast::fitted.Arima'): > > h The number of steps to forecast ahead. > > > So you have the default h = 1 step ahead forecast for your model. > > > Hope this helps, > > Rui Barradas > > Às 12:13 de 28/01/21, Md. Moyazzem

[R] Regarding fitted value

2021-01-28 Thread Md. Moyazzem Hossain
ULL,method='ML') model1 f <- fitted( model1) plot(yy) plot(f) Thanks in advance. -- Best Regards, Md. Moyazzem Hossain [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see http

Re: [R] How to correct my error message

2020-10-27 Thread Md. Moyazzem Hossain
; and provide commented, minimal, self-contained, reproducible code. > > > > -- > Sarah Goslee (she/her) > http://www.numberwright.com > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.e

Re: [R] Arrange data

2020-08-09 Thread Md. Moyazzem Hossain
for(i in 1975:2017) { > for(j in 1:44) { >mddat2[j]<-mddat[mddat$Year == i & mddat$Month >= 7 | > mddat$Year == (i+1) & mddat$Month <= 6,] >m[j]=mean(mddat2$Value) > } > } > > Jim > > On Wed, Aug 5, 2020 at 6:04 AM Md. Moyazzem Hossain

Re: [R] Arrange data

2020-08-09 Thread Md. Moyazzem Hossain
;]]) > > head(final) > # YearsValue > #0 1975-1975 87.0 > #1 1975-1976 89.4 > #2 1976-1977 85.77778 > #3 1977-1978 81.6 > #4 1978-1979 71.6 > #5 1979-1980 75.8 > > > Hope this helps, > > Rui Barradas > > > > Às 20:44 d

[R] Arrange data

2020-08-03 Thread Md. Moyazzem Hossain
Hi, I have a dataset having monthly observations (from January to December) over a period of time like (2000 to 2018). Now, I am trying to take an average the value from January to July of each year. The data looks like YearMonth Value 20001 25 20002 28 20003

[R] Help for forecasting by SVM

2020-07-15 Thread Md. Moyazzem Hossain
Dear Concern, I am interested to forecast a time series by SVM. I have used library e1071 and svm.pred. Please help me by recommending an R code. Thanks in advance. *Md* [[alternative HTML version deleted]] __ R-help@r-project.org mailing li