similar to: Help in running Stata dataset in R

Displaying 20 results from an estimated 300 matches similar to: "Help in running Stata dataset in R"

2008 Jul 22
3
Error in installing packages
Dear R Users; I am an R user who has recently bought a new laptop;Toshiba Satellite U405 running on both Windows Vista and Ubuntu. I have problems on the wondows vista when installing packages. The argument 'lib' is missing. How do i solve this problem? Illustration: > install.packages("epicalc") Warning in install.packages("epicalc") : argument 'lib'
2009 Mar 05
3
Dropping rows conditionally
Dear R-help team, I am getting addicted to using R but keep on getting many challenges on the way especially on data management (data cleaning). I have been wanting to drop all the rows if there values are `NA' or have specific values like 1 or 2 or 3. mdat <- matrix(1:21, nrow = 7, ncol=3, byrow=TRUE, dimnames = list(c("row1",
2009 Aug 20
2
getting R 2.9.1 from the tar.gz file
Dear Sir, I am almost giving up on getting the R-2.9.1 on the ubuntu 9.04 using the instructions found on the R site. I decided to use the R-2.9.1.tar.gz and untarred it. I then typed ./configure and the results are shown below. However, on typing make, I got an error, "No targets specified and no makefile found stop" What is the solution? lmramba at LMramba-dll-d:~$ su Password:
2008 Jul 25
0
Errror in running R2.7.1 version to R2.6.2 version
Dear all, I get an error shown below when i run the command "use" found in package epicalc on R2.7.1 and R2.7.0 but dont get the error when i run it on R 2.6.2 What is likely to be the problem? library(epicalc) Loading required package: foreign Loading required package: survival Loading required package: splines use("malvac.dta") Error in fromchar(x) : character string
2009 Mar 10
5
Changing factor to numeric
Dear Users, I have a variable in my dataset which is of type factor. But it actually contains numeric entries which like 5.735 4.759 ..... This is because the data was read from a CSV file into R and this variable contained other charaters which were not numeric. I have now dropped the records with the characters which are not numeric for this variable and want to change it to numeric srotage
2012 Mar 14
3
Creating 250 submatrices from a large single matrix with 2500 variables using loops
Dear all, I have a large matrix with about 2500 variables, and 100 rows. I would like to calculate the means of the every 10 variables starting from 1:2500 and saving the results as a vector or matrix. How can I do that? Alternatively, How can I create 250 subset matrices in the order of variables 1:2500 in groups of 10 from the single matrix which had initially 2500 variables ? I guess I have
2009 Oct 10
1
Setting a mirror "permanently" on R on ubuntu
Dear all, I seem to have many problems as I run R on my ubuntu system. want to set a mirror so that anytime I use the command "install.packages", it does not ask me for which mirror to use but go direct. This is because of the error I keep on getting below and I dont know how to solve it. Please help. Kind regards, Lazarus > library(epicalc) Loading required package: foreign
2009 Nov 27
6
Learning R - View datasets
Hi All, I am making a serious effort to try to learn R, but one hurdle I am facing is that I need to "see" the data as I walk through the examples in the packages. For instance, many examples on the web start by a command like data("wines"). How can I actually view what the dataset looks like prior to transformations and analysis? I have tried to use edit() , print, and
2009 Aug 18
0
unable to load library rJava on my Ubuntu 9.04
Dear all, I have been running R-2.9.1 on Windows without any problem. I decided to run it on my Ubuntu 9.04 where i have R-2.8.1 and I have a problem loading the package JGR because it cannot load the dependancy rJava. This is a cool editor I would wish to use while on Ubuntu. Here is a copy of the errors i get: library(JGR) Loading required package: rJava Error in dyn.load(file, DLLpath =
2009 Oct 10
1
Setting a mirror "permanently" on R on ubuntu (PR#13995)
Dear all, I seem to have many problems as I run R on my ubuntu system. want to set a mirror so that anytime I use the command "install.packages", it does not ask me for which mirror to use but go direct. This is because of the error I keep on getting below and I dont know how to solve it. Please help. Kind regards, Lazarus > library(epicalc) Loading required package: foreign
2012 May 30
1
Write to dynamic file name
hi, i am trying to use the write.csv function but to give a dynamic file name each time a different one but i am getting an error that he cannot open the file : TodayDate<-UniqDate[1] ## this gives "04/02/2012" FileLocation<-"C:\\Trade Doc\\trade log\\Real account\\sys file\\Test Data\\Data breaked to months\\Days Data\\DayData" FileEnd<-".csv" FileName<-
2013 Nov 09
6
Learning Ruby - Don't give up
An article for those starting learning Ruby Learning Ruby - Don''t give up<http://arubystory.blogspot.com/2013/11/dont-give-up-on-ruby.html> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to
2011 Nov 02
1
Removing or ignoring package version for generic function in locked environment
Hi, I use the epicalc package which provides the function aggregate.numeric. Unfortunately aggregate.numeric produces warnings when aggregate is used by functions not under my control on a numeric value. If I don't load epicalc, aggregate.default is used instead by these functions and does not produce any warning. However I need epicalc. So to get around this, what I would do is firstly
2014 Aug 21
2
pregunta
Estimados Estoy entrenando hacer funciones que respondan a comandos, en esta caso en la salida gráfica se observa que dice : Exposure=var3 y outcome=var 1 quisiéramos que se reflejan los nombres de la base de datos : var1=estado, var2=cake, var3=chocolate Espero haberme explicado adecuadamente Adjunto tabla con datos #################################### #Comando que llama
2014 Aug 21
2
pregunta
Buenas noches Javier y José, Estoy en contra de usar attach(), asi que propongo la siguiente alternativa con with(): # paquete require(epicalc) # los argumentos en ... pasan de epicalc:::cc # ver ?cc para mas informacion foo <- function(var1, var2, var3, ...){ or1 <- cc(var1, var2, ...) or2 <- cc(var1, var3, ...) list(or1 = or1, or2 = or2) } # datos x <-
2009 Oct 10
1
installing any package fails using 'install.packages()' (PR#13993)
Dear all, I installed my R-2.9.2 on my ubuntu version 9.04 successfully using the command sudo apt-get install r-base-dev The problem is that I cannot install any package. See my details below: > install.packages("epicalc") Warning in install.packages("epicalc") : argument 'lib' is missing: using '/home/lmramba/R/i486-pc-linux-gnu-library/2.9'
2007 Oct 25
2
What to do to use libvorbis with FreePascal?
All, I am a FreePascal programmer. I am making a Pascal-based application now, and want to use vorbis as its sound files. What should I do so that I can use libvorbis with FreePascal? (Actually, I use Lazarus as the Windows development environment) Thanks. -- Comodo Firewall Pro -- Powerful & Free, Forever! Visit www.comodo.com Support patent-free audio! Visit www.playogg.org Use
2007 Aug 07
1
New installation does not show on network
Ever since installing Fedora 7, samba stopped showing the machine on the network. I can connect to it by entering the machine name (\\lazarus), but it will not show itself from a Windows machine. I tried a command suggested to test if it was listening and this is what I got; $ smbclient -L localhost -U% Domain=[LAZARUS] OS=[Unix] Server=[Samba 3.0.25b-2.fc7] Sharename Type
2011 Dec 13
8
How to compute 95%CI for OR from logistic regression?
Hi all: My data has 3 variables: age(3levels : <30y=1 30-50y=2, >50y=3) gender(Male=0, Female=1) CD4 cell count(raw lab measurement) y(1:death 0:alive) I perform logistic regression to find out the factors that influence y. result<-glm(y ~ factor(age) + factor(gender) + CD4,family = binomial) >From the result,I can get OR(Odds Ratio) of gender via exp(Estimate of Female,
2008 Nov 14
1
Epicalc package
Dear R-friends, ? I am using the epicalc package and the manual by V. Chongsuvivatwong "Analysis of epidemiological data using R and Epicalc" to get the hang of some basic epidemiological analyses.??? ? After running all the analyses of chapter 7, one is supposed to wrap it up by saving the data writing: ? ? > save(.data, file = "Chapter7.Rdata") ? ...?after writing the