Questions tagged [dummy-data]

Placeholder used for operational or testing purposes.

Dummy-data is useless information reserving a operational information is normally present.

Dummy-data may also be used in testing to properly initialize values which are not intended to be evaluated by the test.

http://en.wikipedia.org/wiki/Dummy_data

164 questions
0
votes
1 answer

Change default binary label in a dummy variable

I use model.matrix() method in R to generate dummy variables as: dd <- data.frame(a = gl(2,2)) model.matrix(~ a - 1,dd) Instead of 0 and 1 output labels, what parameter we need to set in model.matrix() so that output labels are -1 and 1?
Haroon Lone
  • 2,837
  • 5
  • 29
  • 65
0
votes
1 answer

sql : do dummy rows

I have a table like this: a1 b1 a1 b2 a2 b2 a2 b3 And I want to do a 'dummy rows'to have a result like this: a1 b1 1 a1 b2 1 a1 b3 0 a2 b1 0 a2 b2 1 a2 b3 1 I have done a JOIN but it take too long cuz I have 1.4M…
Badr Ftillou
  • 49
  • 2
  • 9
0
votes
2 answers

ZeroMemory Function giving me errors in windows.h?

basically I am programming on a Mac, but I'm using source code from a group at school that had "windows.h" included. I did some research and apparently there is no replica of that file for OSX. I saw an answer on a thread here that said it was…
0
votes
1 answer

Is there a full XML specification with all possible fields for the Yodlee DAG?

Is there was a full specification of all the account fields that can be used with the DAG? Specifically, I'm looking to simulate a 401(k) account with limited options for investments, which may or may not have a balance in them.
Roger Cook
  • 93
  • 6
0
votes
2 answers

Inserting dummy lines for no observation

I have an Excel file for which every line is an observation of a range of species. Observations are made by 315 different cameras (sample points), each of which was set to collect data for a range of 5-38 days (I have the number of survey days for…
abmiller8
  • 33
  • 4
0
votes
1 answer

Pandastic way of growing a dataframe

So, I have a year-indexed dataframe that I would like to increment by some logic beyond the end year (2013), say, grow the last value by n percent for 10 years, but the logic could also be to just add a constant, or slightly growing number. I will…
ako
  • 3,569
  • 4
  • 27
  • 38
0
votes
1 answer

Live dummy data for web application

I am designing a live demo version of a software I wrote. The database is modeled using MySQL, and comes with dummy data ready to use. What I would like to do is to have it generated the time a user signs in to try the demo, and have it be removed…
Théo T. Carranza
  • 7,813
  • 1
  • 21
  • 14
0
votes
0 answers

ggplot making a descriptive bar graph with no clear y variable

I've been trying to create a proportional stacked bar graph using ggplot and a huge data set that is one column of a dummy variable and one column a factor variable with 14 different levels. I posted a small sample of the data here. Despite not…
slap-a-da-bias
  • 376
  • 1
  • 6
  • 25
0
votes
3 answers

Generate image extension from mimetype

I have been trying image uploading in Laravel 5 (upload generated through laravelcollective/forms, and processed using Intervention Image library). What I wanna do is when user uploads any photo, I want to set the extension based on its mimetype.…
rolfk
  • 786
  • 9
  • 16
0
votes
1 answer

Removing additive effect in Multiple Regression in R

I have this data set that I will used for my model set.seed(123) x <- rnorm(100) DF <- data.frame(x = x, y = 4 + (1.5*x) + rnorm(100, sd = 2), b = as.factor(round(abs(DF$x/3))), …
jbest
  • 640
  • 1
  • 10
  • 28
0
votes
1 answer

create dummy column in a query that its value come from a condition

am preparing a query which i will use it in Crystal Report the query is working fine so far but I want to add one more column (dummy column) which will be filled based on a condition , this is the query : select AcctCode , AcctName ,…
0
votes
2 answers

creating dummy variable for years

I have a data with year variable 1950-2007, however, each year is repeated 12 times because of the "month" variable in the other column. How can i create a year dummy variable? this is what i have and R is not accepting it yeardummy <-…
nnyuss01
  • 9
  • 1
0
votes
1 answer

Linear regression lm with multiple dummies under constraints in R

I am trying to perform a regression with multiple dummies under some constraints. The formula would be : Return ~ Country + Sector under the constraint of the sum of the beta for the country equal to 0 and the same for the sector. The code is a as…
Romain
  • 839
  • 10
  • 24
0
votes
2 answers

How to get rid of dummy variables when using lazy evaluation in Scala?

I'm a newbie in Scala and was playing around with lazy evaluation and stumbled with this problem: If I want to make the lazy evaluation of val c works, I have to write the dummy variables a and b before the declaration of c, which I consider too…
carlos_lm
  • 523
  • 2
  • 5
  • 10
0
votes
2 answers

Apply dummyvar function in Matlab

I have two distinct double variables with one column and 30000 rows each. For instance: A=[53 76 41 74 34 237 43…] B= [1985 1985 1985 … 1986 1986 … 2013…] If I do: size(unique(A),1) ans =261 size(unique(B),1) ans = 27 But when I…
user3557054
  • 219
  • 2
  • 11