I would like to know how to upload a data set from R packages to winbugs.
In particular, "LearnBayes" package in R has too many data sets. I would like to use one of them in Winbugs.
Can anyone help me with this?
I came across this link because I have no idea what WinBugs data is suppose to look like but I don't know if it works. It's an R Function that supposedly changes the typical dataset into this list thing and I got the function working but still not able to get the dataset working but I'm really stupid so you might have better luck.
Related
After forming the matrix( which is my resultant image ) from certain data I am trying to display the image using the "imagesc" in r. The same thing I already had done in Matlab. To do the same in r I found out "imagesc" in r. but when I use this function it is showing the following error message
No documentation for ‘imagesc’ in specified packages and libraries:
you could try ‘??imagesc’
Even I already incorporated
library(R.matlab)
please help me to resolve the issue? I am a beginner in r programming.
You are looking for the function imagesc in the wrong package.
The package R.matlab doesn't have such function (see R.matlab).
You can find it in the matlab package, though.
So just do:
install.packages("matlab")
library(matlab)
and you'll be good to go with imagesc.
That said, if your task is going to be a recurrent one, I think it's a good idea to use native R solutions, instead of Matlab's. In such case, you may want to check ggplot2::geom_tile.
Check this image, for instance:
I need help for my problems. I have 2 problems.
I can't install library (VGAM) on my RStudio. Have any idea for another regression logistic ordinal package or have solution for my problem?
I Stuck for the first step when used mlogit. I have dependent variable = Kategori.Kredit with 3 option. And I have independent variable = FD,FC,ND,NC,CASA. Please help me to solve this problem, I try read example on pdf but still didn't understand.
Please, don't post two completely different questions at the same time.
Don't post code as image. Post as text
About number 2, it seems that your data is in the wide format, while mlogit need it in the long one. Use the function mlogit.data to get your data ready. The manual has some good examples about mlogit.data
I want to create a conincidence matrix using R Studio for a decision tree that I have generated. I have done the same in SPSS but am not able to figure out how to do the same in R. I am attaching an image of how it looks in SPSS. If you could point me to the right resource or link that can tell me what the quivalent of this in R is, that would be very helpful. Thank you!!
First, please try and ask targeted questions. What have you tried? What packages have you explored? Where are you getting stuck?
Nonetheless, I would start by reading through this, A Short Introduction to the caret Package. Then, do this:
install.packages("caret")
library(caret)
?confusionMatrix
It is my first time using R for phylogenetics work and I was wondering if I could do that. It seems a rather trivial job and I think there must be a very small code for this, but I am unable to get it done. Any help appreciated!
I am using the library(eventstudies)(Event Studies Package). In the sample they use:
(data(StockPriceReturns))
(data(SplitDates))
(head(SplitDates))
However I do not know how to set up my own dataset to use the package. My quesiton is:
How to look into the StockPriceReturns data?
I appreciate your answer!
I think you want to read a data set into a data frame or table.
I'm not familiar with that package, so I'm not sure about required format. If the data set you read in matches the schema of StockPriceReturns, I'm sure R will process it just fine. This PDF appears to explain it well.