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
2
votes
1 answer

Generating dummy data for SonarQube

I'd like to generate a dummy data for SonarQube to develop further Qualinsight SVN Badges. Does SonarQube have the capability of generating "sandbox data" for developers? Or are there already features available for this kind of use-case? The things…
Willy Pt
  • 1,795
  • 12
  • 20
2
votes
1 answer

R model.matrix using same factor set among all columns

I have a set of basketball lineup data with five columns, each sharing the same factor, like so: head(dat) V1 V2 V3 V4 V5 1 MILES,KEATON KINGSLEY,MOSES BELL,ANTHLON HANNAHS,DUSTY …
user3562406
  • 197
  • 1
  • 1
  • 9
2
votes
3 answers

linear regression with Quarter dummy

I am trying to fit a linear regression to the data below Power<-mutate(Power,Year=format(Date,"%Y"),Quarter=quarters(Date),Month=format(Date,"%m")) head(Power) Date YY XX Year Quarter 2007-01-01 NA NA 2007 Q1 2007-01-02…
jkl
  • 67
  • 1
  • 9
2
votes
1 answer

Create dummy variables for turn-of-the-month MATLAB

I have daily closing values of an index and I want to create dummy variables for a specific number of days before and after the last day of each month. Say 4 days before and 4 days after. Total 9 days. I have 23 years of data. The thing is that the…
user3934760
  • 95
  • 2
  • 10
2
votes
2 answers

Convert multiple binary columns to single categorical column

I have a table full of binary variables that I would like to condense down to categorical variables. Very simplistically, I have is a data frame like this: data <- data.frame(id=c(1,2,3,4,5,6,7,8,9),…
user2905280
  • 47
  • 1
  • 7
2
votes
1 answer

R Forecast with lagged dependent variable

Use lm function in to fit (Pt=aPt-1 + bXt + Dummy variable for each quarter) to fit the sample data. How to create n.ahead=12 forecast? Couldnt figure out how to set up dummy and Pt-1 fore iteration.Any help is appreciated!
user2237793
  • 77
  • 1
  • 6
2
votes
2 answers

Create dummy variable to do two-way ANOVA

d = data.frame( Temperature = c(rep("Cool", 6), rep("Warm", 6)), Bact = c(rep("Bact 1", 2), rep("Bact 2", 2), rep("Bact 3", 2), rep("Bact 1", 2), rep("Bact 2", 2), rep("Bact 3", 2)), Time =…
ABCD
  • 7,914
  • 9
  • 54
  • 90
2
votes
1 answer

Error when introducing dummy variables in a regression in Matlab

I am running some regressions in Matlab. My first three regressions are: tbl1=table(Y1,X1); mdl1=fitlm(tbl1,'Y1~X1'); mdl12=fitglm(tbl1,'Y1~X1','Distribution','binomial','link','probit'); mdl13=fitglm(tbl1,'Y1~X1','Distribution','binomial');…
2
votes
1 answer

R: Expanding an R factor into dummy columns for every factor level

I have a quite big data frame in R with two columns. I am trying to make out of the Code column (factor type with 858 levels) the dummy variables. The problem is that the R Studio always crashed when I am trying to do that. > str(d) 'data.frame': …
Kapuha
  • 93
  • 1
  • 12
2
votes
1 answer

Codeigniter activerecord selecting null into a dummy column

I´d like to add an extra column to the select for formatting purposes. The problem is that when I do $this->db->select("NULL as ExtraColumn1") codeigniter treats NULL as a column, so when it generates the query it's something like SELECT `NULL` AS…
Alfonso
  • 326
  • 1
  • 10
2
votes
1 answer

I want to hardcode the value of a dummy column from my view created upon an oracle DB

I have a view which has one dummy column called action. I have a formula {@action} if {abc_view.name} startswith "abc" Then {abc_view.action} = "Represents action" Else {abc_view.action} = "" and when I am calling this formula from the record filter…
1
vote
1 answer

Mask data using same values for duplicates pandas dataframe

I have a dataframe with personal information and duplicated people, represented by the duplicated ID and their job (if the person appears more than once they may have different jobs represented in the data). Like in this example: ID Name Street …
Paulo Cortez
  • 609
  • 4
  • 10
1
vote
1 answer

Make dummy variables for a categorial variable

Let's say I have a data frame df as follows: df <- data.frame(type = c("A","B","AB","O","O","B","A")) Obviously there are 4 kinds of type. However, in my actual data, I don't know how many kinds are in a column type. The number of dummy variables…
Bae
  • 97
  • 1
  • 6
1
vote
1 answer

How to generate a 10000 lines test file from original file with 10 lines?

I want to test an application with a file containing 10000 lines of records (plus header and footer lines). I have a test file with 10 lines now, so I want to duplicate these line 1000 times. I don't want to create a C# code in my app to generate…
1
vote
0 answers

Graph embedding on a dummy dataset

I am new to graph embeddings and I have been trying to embed a simple multi-directed graph with 5 nodes, with a symmetry between node 1 and 2. My assumption is that if node 1 and 2 are exactly symmetric (they are both linked to the same nodes with…
hmdng
  • 11
  • 3
1 2
3
10 11