# Stata Questions

Ad

## How to remove some filenames from the list of all filenames in that folder

I created in stata a list of all files in a folder with the following: global file_all : dir "$outputsfolder" files

## Combine rows per groups in R (or Stata)

I have an issue in r (or stata) which i cannot solve. i have a database as the sample below:

## Generate statistical tables in Python and export to Excel

I want to generate in python high quality statistical tables used for publications. in stata, one can use the

## Stata type mismatch with local macro?

I'm trying to create a loop in stata to run a bunch of regressions. this is a very simplified version of how it looks: foreach y of

## Faster way to slice a matrix in Julia

I want to iterate over different matrix blocks based on an index variable. you can think of it as how you would compute the individual

## statamic / bootstrap problem with vertical align

Im newbie about statamic, im try to solve this code : <div class="container"> <div class="intro"> <div

## Generating same ID for every 11 observations

I am reshaping data from the sestat data explorer tool. i am trying to generate the same id number for every 11 observations. i have attempted

## Pandas - Create a table with a "dummy variable"

Let's say i have this dataframe id | car | sex | income ------------------------------- 1 | european | male | 45000 2

## Stata Duplicate/Split Observations Each Time Variables not Equal

I am working out of stata se 13 and have a dataset that looks something like this (i know this is a code block, but i used it for formatting

## How to open SPSS metadata files in either SAS or Stata or R or Excel?

I have some spss metadata files (*.mdd). however, i do not have spss installed on my computer and i do not know how to use spss. i want to open

Ad

## How to create variable from 1 to n (increments of 1)?

Assuming that in stata e.g. i have one stacked variable (in column 2) of stock returns with data populating range of 1 to 2000000 (some blanks

## How to add a row where there is a disruption in series of numbers in Stata

I'm attempting to format a table of 40 different age-race-sex strata to be inputted into r-inla and noticed that it's important to include all

## Find missing instances of a sequence

How can i find in stata the missing instances of a sequence? input seq 1 2 4 5 6 7 9 10 end e.g. 3 and 8 are

Ad

## Blog Categories

Ad