search for: companyid

Displaying 6 results from an estimated 6 matches for "companyid".

Did you mean: company_id
2011 Feb 09
3
Loop in variable names
...s for several variables and I would like to write a loop that does the table for each variable. I should also point out that my data set has several missing observations and sometimes the observations that are missing are not the same for all my variables. What I would like to do: table(StoreData$CompanyID, !is.na(StoreData$P2)) table(StoreData$CompanyID, !is.na(StoreData$P5)) If I run the above code, I get: > table(StoreData$CompanyID, + !is.na(StoreData$P2)) FALSE TRUE 2 940 0 3 0 323 4 288 0 5 306 0 > table(StoreData$CompanyID...
2017 Oct 19
1
looping using 'diverse' package measures
...iversity measures on a sample of firms for a period of about 10 years. I was wondering if you can give me some hints on how to best proceed on using the 'diverse' package. My sample has the following setup. It's comprised of a annual variable number of firms which are identified by the companyid variable and the year variable (unbalanced panel). In addition I also have a variable identifying the worker, workerid. I then have a set of variables which i want to use as the basis for calculating some of the measures in the 'diverse' package. An example of the sample is as follows, usin...
2005 Dec 22
3
foreign_key setting ignored
...he ''contact'' table. Iv''e used ''generate scaffold'' on these tables and everything is fine. I then decided to define the relationship in the relevant model classes... class Contact < ActiveRecord::Base belongs_to :company,:foreign_key => "companyid" end ---- class Company < ActiveRecord::Base has_many :contact end And then I''ve added the following line to views/company/show.rhtml to try and get at the child elements... <%= debug(@company.contact) %> I''ve tried loads of variations on this setup, but alwa...
2010 Apr 07
3
match function or "=="
Hi all, I have a huge dataset(5000k observations), which contains the daily sales for each company. If I want to find out the a company with unique company id number, which function I should use that is more efficient, match or "=="? For example, use<-dataset[!is.na(match(dataset$companyID, 12345)),] or use<-dataset[dataset$companyID==12345,] Thank you very much. -- View this message in context: http://n4.nabble.com/match-function-or-tp1754505p1754505.html Sent from the R help mailing list archive at Nabble.com.
2017 Oct 19
1
looping using 'diverse' package measures
...iversity measures on a sample of firms for a period of about 10 years. I was wondering if you can give me some hints on how to best proceed on using the 'diverse' package. My sample has the following setup. It's comprised of a annual variable number of firms which are identified by the companyid variable and the year variable (unbalanced panel). In addition I also have a variable identifying the worker, workerid. I then have a set of variables which i want to use as the basis for calculating some of the measures in the 'diverse' package. An example of the sample is as follows, usin...
2011 Apr 01
0
package MICE, squeeze function, calling several variables at once
..."Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"), exclude = c("ActualWeekEndingDate", "CompanyID", "PriceZoneID", "Date", "Year")), print=FALSE) meth <- ini$meth # naming the default method in inipred <- ini$pred # naming the matrix of default predictors in inipost <- ini$post # naming the default post processing method in inip...