similar to: regression with categorial variables

Displaying 20 results from an estimated 1000 matches similar to: "regression with categorial variables"

2009 May 20
2
Example for parsing XML file?
Hi, I am trying to parse XML files and read them into R as a data frame, but have been unable to find examples which I could apply successfully. I'm afraid I don't know much about XML, which makes this all the more difficult. If someone could point me in the right direction to a resource (preferably with an example or two), it would be greatly appreciated. Here is a snippet from one of
2007 Jun 14
1
ARIMA with more than one seasonality period
Dear R community, I have a project with electricity load forecasting, and I got hourly data for system load. If you haven't worked with electricity before, seasonality comes in many flavors: a daily pattern, with a peak at around 7pm; a weekly pattern, in which we use more electricity on weekdays in comparison to weekends; a winter-summer pattern, with air conditioning and heaters playing an
2004 Jun 10
1
Clustering Categorial and Continuous Variables
Hi there fellow R users, R has many different clustering packages (e.g. mclust,cluster,e1071). However, can anyone recommend a method to deal with data sets that contain categorial and continuous variables? Regards Wayne KSS Ltd Seventh Floor St James's Buildings 79 Oxford Street Manchester M1 6SS England Company Registration Number 2800886 Tel: +44 (0) 161 228 0040 Fax: +44 (0)
2004 Nov 12
1
How to get mode in case of discrete or categorial data
Dear all, in a previuos message was asked how get the mode of continous distribution. Now I'm asking if there an R function to obtain the mode in case of a discrete distribution or categorial data. The only way is to use table(): > x<-rep(1:5,100) > s<-sample(x,40) > t<-table(s) > t s 1 2 3 4 5 13 10 5 4 8 the mode is value=1 Thanks Cordially Vito =====
2008 Oct 18
1
Categorial Response Questions
Hi All, I have a data set containing : pclass: A factor giving the class of the passenger: one of 1st, 2nd, 3rd. age The age of the passenger in years. sex Passenger's gender: female or male age.group Passengers age group, one of 0?9 , 10?19, 20?29, 30?39, 40?49, 50?59, 60?69, 70?79 survived Passenger's survival (1=survived, 0=did not survive)
2007 Sep 11
2
Help regading time series data reading
Dear R-Users, Have a question about reading in some data and manipulating dates. I have a data set in excel which looks like this: Date PEG ETN HSP PTC 13/10/2004 41.92 64.75 29.86 9.27 14/10/2004 41.93 61.79 29.98 9.14 15/10/2004 41.69 62.7 30.09 9.04 18/10/2004
2007 Oct 14
1
ggplot2: ordering categorial data
Hello again, everytime I think I got something to work, the next issue comes up... I have the following data.frame, I want to visualize: > data_rb tld spam1 spam2 share 1 ca 826436 73452 0.0889 2 org 470550 25740 0.0547 3 de 156042 15531 0.0995 4 com 140753 7527 0.0535 5 edu 34845 2507 0.0719 6 net 12781 382 0.0299 7 ru 7648 18 0.0024
2013 May 07
2
recode categorial vars into binary data
Dear R-List, I would like to recode categorial variables into binary data, so that all values above median are coded 1 and all values below 0, separating each var into two equally large groups (e.g. good performers = 0 vs. bad performers =1). I have not succeeded so far in finding a nice solution to do that in R. I thought there might be a better way than ordering each column and recoding the
2013 May 07
2
recode categorial vars into binary data
Dear R-List, I would like to recode categorial variables into binary data, so that all values above median are coded 1 and all values below 0, separating each var into two equally large groups (e.g. good performers = 0 vs. bad performers =1). I have not succeeded so far in finding a nice solution to do that in R. I thought there might be a better way than ordering each column and recoding the
2004 Nov 12
4
Mode in case of discrete or categorial data
Thanking John for his suggestion I build this function which get the mode of both categorial and discrete data. Mode<-function(x){t<-table(x) if (is.numeric(x)) as.numeric(names(t)[t == max(t)]) else (names(t)[t == max(t)]) } Any other improvement and suggestion will welcome. Best Vito > s [1] 1 1 6 1 1 7 6 5 6 2 1 4 5 6 6 7 3 5 4 1 7 3 7 3 3 7 7 2 1 4 4 2 7 7 6 6 1 2 [39] 5 1 7 7
2010 Jun 23
1
Plotting Data on a Map
Hi: I am practicing with the attached shapefile and was wondering if I can get some help. Haven't used 'rgdal' and 'maptools' much but it appears to be a great way bring map data into R. Please take a look at the comments and let me know if I need to explain better what I am trying to accomplish. library(rgdal) library(maptools) library(ggplot2) dsn="C:/Documents and
2010 Dec 07
3
help on timeseries
i have time series of momentum signal. I want to get the date of each of the "-1" signal period. for example , the first period of -1 signal begins on 2005-9-21 and ends on 2005-9-28. 2nd period of -1 signal begins on 2005-09-30 and ends on 2005-10-28. Thx Cameron date Px 200MA Signals 2005-09-15 26.27 25.83865 1 2005-09-16 26.07 25.83275 1
2003 Oct 22
2
High frequency time-series
Having to collect hourly electricity loads and quarter-of-an-hour electricity production data for some years I think that the tidiest way of doing it is to resort to ts but I don't know how to define such a frequency starting from a set date. Leafing through r-help mail archives I've found this *ALMOST* satisfactory message: ==========================================================
2006 Oct 20
2
Dataset on Baltimore home energy costs
I received a private request for my complete dataset from my previous questions. In gratitude to the developers of R, and especially to the helpful members of r-help, I'm happy to attach it. Anyone is free to use this dataset in any manner they wish, including published books. Attribution is not required, or even desired. Explanatory notes on dataset: This data is collected from monthly
2004 May 24
2
Tramo-seats
Working - among other things- in the field of (short & long term) electricity forecast, we are now using too many & too expensive pieces of licensed software: SAS, SPSS, EViews. This "sedimentation" is due to the fact that my predecessors in the past used different consultant companies to manage each procedure. Having attended the useR2004! Conference with the aim of assessing
2006 Nov 21
5
Why Aastra uses 48V whereas other IP Phones use much less, i.e. 5-12V
Hi, Why Aastra phones use more electricity, i.e. 48VDC whereas other phones use much less, e.g. Grandstream and Linksys both use only 5VDC. I first thought it was because of PoE, but the ones with 5VDC also run fine on PoE. What is the difference in power consumption then? -- Zeeshan A Zakaria -------------- next part -------------- An HTML attachment was scrubbed... URL:
2017 Nov 03
1
Extreme bunching of random values from runif with Mersenne-Twister seed
Martin, Thanks for the helpful reply. Alas I had forgotten that (implied) unfavorable comparisons of *nix systems with Windows systems would likely draw irate (but always substantive) responses on the R-devel list -- poor phrasing on my part. :) Regardless, let me try to address some of the concerns related to the construction of the MRE itself and try to see if we can clean away the shrubbery
2013 Dec 12
7
Do I need a dedicated firewall?
Hi All, So my electricity bill is through the roof and I need to pair down some equipment. I have a CentOS 6.5 Server (a few TB, 32gb RAM) running some simple web stuff and Zimbra. I have 5 static IP's from Comcast. I am considering giving this server a public IP and plugging it directly into my cable modem. This box can handle everything with room for me to do more. Doing this would allow
2006 Dec 29
2
close pc
hi i think nut close the computer when the battery is low... is there a way to close it after a few time is electricity is off? thanks
2018 May 02
1
IP aliases of DCs to prevent DNS timeouts
On Wed, 2 May 2018, Denis Cardon via samba wrote: > may I inquire why you are have setup such a scenario? If all DC are on same > site, it is not necessary to have such a hassle. If DC02 and DC03 are on > different remote site with intermitent electricity/connectivity, you can > juste setup "sites and services" in corresponding console, and workstations > will only