you want the table in your document
> Select Insert|Text from file from the top menu
> Select (highlight) the text you have imported
> Select Convert|Text to table from the top menu
>
> The highlighted area should become a table. I had to reduce the font size
> from 12 to 1
hout<-ArchTest(x)
> return(sprintf("ChiSq = %f, p = %f",archout$statistic,archout$p.value))
> }
> # using "lapply", run the test on each column
> spout<-lapply(sp_8_5[,2:12],archStatP)
>
> Note that I should have used "lapply". I didn't check the output
est on each column
> spout<-sapply(sp_8_5[,2:12],ArchTest)
>
> The list "spout" contains the test results. If you really want to use a
> loop:
>
> spout<-list()
> for(i in 2:12) spout[[i-1]]<-ArchTest(sp_8_5[,i])
>
> Jim
>
>
> On Fri, May 8, 202
mail.
>
> Jim
>
> On Thu, May 7, 2020 at 10:30 PM Subhamitra Patra
> wrote:
> >
> > Dear R-users,
> >
> > I want to estimate ARCH test for multiple columns (i.e., from 2:21
> COLUMNS
> > ) in my data. For this purpose, I want to run a loop to calc
column as an output file.
For your convenience, I attached my sample data below. Please find it.
Please help me for which I shall be always grateful to you.
Thank you.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute
t;
> Michael
>
> On 25/11/2019 10:34, Subhamitra Patra wrote:
> > Dear R-users,
> >
> > I am estimating the DCC-model by using the following code and
> successfully
> > making the individual plots indicating the dynamic correlation between
> the
> > two
(i.e. A1 versus A2, B1 versus B2, ...so on) throughout the
entire period.
For your convenience, I have attached my sample data.
I definitely expect a positive help from the experts as the suggestions
from the expert through this R forum has always solved my previous problem.
Thank you.
--
10.0739540955956, 9.04955917463259, 10.8927827168631, 9.44611041690694,
> 10.7883395708593, 10.6010088332078, 7.72560864006592, 10.1760839916637,
> 11.5576569894392, 11.384809257294, 8.73504353987083, 9.00585942714512,
> 9.62327893504013, 10.3527072699866, 10.5220100705827, 8.74921668696853,
> 8.56
quot;), country
> column), mean)
>
> But if you insist to scratch your left ear with right hand accross your
> head, you could continue your way.
>
> Cheers
> Petr
>
> > -Original Message-
> > From: R-help On Behalf Of Subhamitra
> > Patra
> > Sen
fied by
Mailtrack
<https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality5;>
09/13/19,
06:41:41 PM
On Fri, Sep 13, 2019 at 4:24 PM Jim Lemon wrote:
> Hi Subhamitra,
> I'll try to write my answers adjacent to your questions below.
>
> On Fri, Sep 13, 201
> [1] 33.32143
>
> monthlyB
> month: 1
> year: 1994
> [1] 29.7
>
> month: 2
> year: 1994
> [1] 27.28571
>
> Sorry I didn't use a loop (for(month in 1:12) ... for (year in
> 1994:2000) ...), too
help me in this regard.
Please find the attached datasheet.
Thank you.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail_med
by using a loop,
and then, I want to export the results into excel.
Please help me in this regard.
Please find the attached datasheet.
Thank you.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur
;- zoo(x)
> z <- rollapply(y,50, function(x) AutoBoot.test(x,nboot=30,
> wild="Normal")$AutoBoot.test)
>
>
> On Tue, Aug 27, 2019 at 1:20 AM Subhamitra Patra
> wrote:
> >
> > Dear R users,
> >
> > I want to use rollapply function from the z
some error message, and unable to do that. Is there any
mistake in my code?
Please help me with this.
Thank you.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[image: Mailtrack]
&l
; text(1:42+0.5,spdf[,2]+0.05,spdf[,1],col=k1$cluster)
> text(1:42-0.5,spdf[,4]-0.05,spdf[,3],col=k2$cluster+2)
> legend(10,1,c("cluster 1 DM","cluster 2 DM","cluster 1 EM","cluster 2 EM"),
> col=1:4,pch=19)
>
> The crowding of points and
;
> I took the liberty of replacing your abbreviations with internet top
> level domains. As I hope you can see, you have a problem with crowded
> points and labels, even with the trick of spreading the labels out.
> You could modify the X and Y offsets by hand and get a
in foreign function call (arg 1)
>> In addition: Warning message:
>> In storage.mode(x) <- "double" : NAs introduced by coercion
>>
>> So there must be another issue with your data.
>>
>> Cheers
>> Petr
>>
>> -Original Message-
,
> header=TRUE,stringsAsFactors=FALSE)
> library(cluster)
> k2 <- kmeans(ts, centers = 2, nstart = 25)
> plot(ts[c(2,4)],col=k2$cluster,type="n")
> text(ts[c(2,4)],ts$Name.1,col=k2$cluster)
>
> Jim
>
> On Tue, Jun 11, 2019 at 2:44 PM Subhamitra Patra
> wrote:
y) on this list.
>
> Use ?dput to show your data or at least part of your data illustrating the
> problém.
>
> Cheers
> Petr
>
> -Original Message-
> From: R-help On Behalf Of Subhamitra Patra
> Sent: Tuesday, June 11, 2019 8:05 AM
> To: ঋষি ( ऋषि / rIsHi
Jun 11, 2019 at 12:09 PM ঋষি ( ऋषि / rIsHi )
wrote:
> I can not see the attached data
>
> On Tue, 11 Jun 2019, 10:14 Subhamitra Patra,
> wrote:
>
>> Dear R-users,
>>
>> I am doing cluster analysis, but when I am plotting the results, the no.
>> of
>> obse
elp me in this regard.
Thank you.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevir
ur data at my fingertips:
>
> 3567/15.58385
> [1] 228.8908
>
> Almost exactly what was calculated for the first series. Your increment
> remains 229 and your offset is 114, so
>
> year_mids<-seq(114,3567,229)
>
> Jim
>
>
--
*Best Regards,*
*Subhamitra Patr
ack.io?utm_source=gmail_medium=signature_campaign=signaturevirality5;>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality5;>
12/16/18,
1:29:05 PM
On Sun, Dec 16, 2018 at 12:24 PM Subhamitra Patra <
subhamitra.pa...@gmail.com> wro
main=names(EMs3.1)[i],xaxt="n")
> axis(1,at=year_mids,labels=1994:2017)
> }
> # import your fourth sheet here, (1 column)
> EMs4.1<-read.csv("EMs4.1.csv")
> ncolumns<-ncol(EMs4.1)
> for(i in 1:ncolumns) {
> plot(EMs4.1[,i],type="l",col
the above (i.e. the
bold line). Please suggest me Is it the correct way that I am doing?
Sir, I am new in R and doing by learning.
Kindly suggest me regarding my previous queries for which I shall be always
grateful to you.
Thank you very much for educating a new R learner.
On Wed, Nov 21, 2018
el for defining the
date column of the daily data?
A kind help is highly appreciated.
Thanks in advance.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[[alternative HTML v
you do not have
> a lot of experience in R and you want to get the job done. If you can't get
> it to work, I apologize and you can blamelessly move to something else.
>
> Jim
>
> PS - If you don't know how to start HTML help - help.start()
>
> On Wed, Nov 21, 2018 at 7:26 PM Subhamit
ncols)
> plot(seq(1:nrows,MPG3[,i],type="l",xlab="Distance",
> ylab="MPG",main=names(MPG3)[i],xaxt="n")
> axis(1,at=1:nrows,labels=MPG3$Year)
>
> I probably have the structure of the imported data frame wrong, but I
> think you can w
; plot(seq(1,500,length.out=10),mpg2[,i],type="l",xlab="Distance",
> ylab="MPG",main=names(mpg)[i])
> # finish plotting
> dev.off()
>
> You would then have 50 plots on the PDF page. I am assuming that all of
> your sheets have the same number of ro
his:
>
> pdf("mpg.pdf",width=30,height=12)
> par(mfrow=c(4,10))
> for(i in 1:38)
> plot(seq(1,500,length.out=10),mpg[,i],type="l",xlab="Distance",
> ylab="MPG",main=names(mpg)[i])
> dev.off()
>
> you will get what you requeste
4,veh35,veh36,veh37,veh38)
> pdf("mpg.pdf",width=30,height=12)
> par(mfrow=c(4,10))
> for(i in 1:38)
> plot(seq(1,500,length.out=10),mpg[,i],type="l",xlab="Distance",
> ylab=names(mpg)[i],main="MPG by distance")
> dev.off()
>
> Jim
>
>
I want to give my X axis name as scores of (1,500) and Y axis as the
particular column names for all graphs.
Please suggest.
Thanks in advance.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Khara
;- nrow(ts) - width
> r<-matrix(0, ncol = N, nrow = M)
> library(pracma)
> for (i in 1:N){
>r[,i]<-rollapply( data=ts[,i], width=width, FUN=approx_entropy,
> edim = 2, r = 0.2*sd(ts[,i]), elag = 1, align="right")
> }
>
> Best,
> Eric
>
e i'th column of ts, whereas your definition of i
> implies it is based on row numbers.
>
> Maybe this is leading you to see problems elsewhere. From the rollapply
> documentation I don't see any reason why it would not work with the
> approx_entropy function.
>
> Best,
> Er
n advance.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail_medium=signature_campaign=signaturevirality5;>
Sender
notified by
M
r folder.
A great help will be highly appreciated.
Thanks in advance.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[[alternative HTML versio
Thanks a lot.
On Sun, Oct 7, 2018 at 6:16 PM Michael Dewey
wrote:
> If you look at the documentation for plot() you will see a type
> parameter which can take a number of values including plot = "l" to get
> lines, and so on.
>
> On 07/10/2018 11:03, Subhamitra Patr
am not getting a proper idea for writing the double loop (i.e. one
for the multiple columns of one excel sheet and other for the multiple
excel sheets of a folder).
Please help me in this regard.
Thanks in advance.
On Sun, Oct 7, 2018 at 3:33 PM Subhamitra Patra
wrote:
> Thanks a lot, Sir. I
Lemon wrote:
> plot(r) will give you a set of points with the values of r on the y
> axis and 1:N on the x axis. If you want to add more series, look at
> "points" or "lines". Also look at the options "b" and "l" for plot if
> you want points an
() but then you index it with
> just one dimension.
>
>
> r[i] <- approx_entropy(ts[i,], edim = 2, r = 0.2*sd(ts[i,]), elag = 1)
>
>
> Shouldn't it be ts[i] or r[i, ] ?
>
> Hope this helps,
>
> Rui Barradas
>
> Às 10:34 de 06/10/2018, Subhamitra Patra escreveu
in advance.
>
> On Sat, Oct 6, 2018 at 2:22 PM Jim Lemon wrote:
>
> > Hi Subhamitra,
> > Where I think the error arises is in the line:
> >
> > N<-nrow(mat)
> >
> > Since we don't know what "mat" is, we don't know what nrow(mat) will
> > retur
e don't know what "mat" is, we don't know what nrow(mat) will
> return. If "mat" is not a matrix or data frame, it is likely to be
> NULL. Try this:
>
> print(N)
>
> after defining it and see what it is.
>
> Jim
>
> On Sat, Oct 6, 2018 at 5:51 PM S
*
Please help me for which I shall be always grateful to you.
Thanks in advance.
--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences*
*Indian Institute of Technology, Kharagpur*
*INDIA*
[[alt
44 matches
Mail list logo