Cannot run an ICC analysis in R
I have loaded my data from excel spreadsheet and have tried the following:
ICC(CMI)
I have removed my row names. I am not sure if I need to convert my columns or use a difference approach. I have loaded the Psych package.
This is my code: ICC(Test)
This is what comes back:
Error in stack.data.frame(x) : no vector columns were selected
Not sure of what this means or how to fix this? Thanks in advance for any help. I really appreciate it.
I had the same problem with a dataset. I suggest you try:
ICC(as.matrix(Test))
. This worked for me. Otherwise, type help(ICC) and check the example and compare the procedure used there compared to your data.
Good luck!
Related
Good evening,
I have dataset where there is one variable which is Gender with missing data. Could anyone please help me how could i replace these NAs using R Packages. I have tried the "Mice" package however it does not replace the NAs and its still exist in data under gender column. I have provide the sample data below with my codes. Thanks in advance for the support.
Dataset sample
R- codes used:
Used R-codes
Regards,
Kumar
That's too much code. You can try imputing the missing data with either of method="rf" or method="cart" although in my experience the cart method seems to be more accurate.
You could also use the preprocess function and either of medianImpute or knnImpute as it gives pretty good results for this kind of imputation.
Example with mice:
test_imp<-mice(df,m=5,method="cart",printFlag=F)
test_imputed<-complete(test_imp,3)#Selects third imputation
Example with preprocess
test_1<-preprocess(testdf,"medianImpute")
test_imputed<-predict(test_imputed,test_1)
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.
i'm new to R and I have a problem with finding a specific data frame and it's code in R files,Is there any way to find it at all?
beforehand I'm sorry if this question comes across alittle basic or strange.
Any little help would be greatly appreciated.
You may try iris data.
First load the data:
data(iris)
Then print and use it:
print(iris)
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 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.